Re: Passing a file name to PDF Printer
- From: "Doug Robbins - Word MVP" <dkr@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 19 Feb 2007 05:49:16 +0100
See the "Individual Merge Letters" item on fellow MVP Graham Mayor's website
at:
http://www.gmayor.com/individual_merge_letters.htm
If you are using Word XP or later, the work has all been done for you in the
"Add-in to Merge Letters to Separate Files" that I have written and that can
be downloaded from that site will allow you to create each letter as a
separate file with a filename taken from a field in the data source with a
minimum of fuss, plus create the output as .pdf files.
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
"Stu" <Stu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FA668093-3530-4801-975A-9A6AAA58FE91@xxxxxxxxxxxxxxxx
Hello
I'm trying to write a macro in Word 2003 that will print individual PDF
files for each record in a mail merge, with the file name being sourced
from
a field in the data source. I can capture the value OK (checked via a
temporary MsgBox) but I'm having no success in trying to pass that value
to
the dialog box for the PDF printer (in the current case, Jaws PDF
Creator).
The menu command installed by Jaws invokes a custom-installed macro as
Application.Run MacroName:="JawsPdfCreator.CreatePDF.CreateJawsPdfFile"
That opens the dialog box with the filename of the active document
highlighted - what I want to do is replace the highlighted value with the
filename I create from the source data field.
SendKeys doesn't work (it regards the active document as the active
object,
and types it in there), and I don't know enough about the Jaws DDE stuff
to
use the DDE commands.
Any help or clues would be mightily appreciated
Stu
.
- Follow-Ups:
- Re: Passing a file name to PDF Printer
- From: Stu
- Re: Passing a file name to PDF Printer
- Prev by Date: Re: Selecting Bookmark objects
- Next by Date: Re: Finding out which page number you are on
- Previous by thread: Re: Selecting Bookmark objects
- Next by thread: Re: Passing a file name to PDF Printer
- Index(es):
Relevant Pages
|