42
DocuMatch
TM
Integrated Mail System
DocuMatch Application Notes
3. In the WordBasic program, use the SendKeys and
FilePrintSetup Options to send the keystrokes to the
driver’s setup screen. You will find it most convenient to
save the setup to a JOB file in advance and then use
the macro to recall the setup.
The following program segment calls up the setup
screen and specifies the keystrokes to recall the setup
saved in the file
C:\DOCMATCH\MAILJOBS\SAMPLE.JOB.
The following WordBasic code calls up the setup screen
and sends it the appropriate keystrokes:
SendKeys “%m%jc:\docmatch\mailjobs\
sample.job {enter}{enter}”,- 1
FilePrintSetup .Options
The above sequence automates the following operations:
1. Calls up the driver setup screen.
2. Types alt-m : selects Generate Mai.l
3. Types alt-j: brings up Select Job dialog.
4. Types c:\docmatch\mailjobs\sample.job: specifies job
name.
5. Presses enter: accepts job name.
6. Presses enter: closes setup screen.
The WordBasic code on the next page performs a merge of
the first
nrecs
records and closes the document file. This
procedure assumes that the current document is already
set up as a mail merge document with an attached data
file.
Automating Operations Under Microsoft Word 6, continued
Содержание DocuMatch
Страница 1: ......
Страница 8: ...2 DocuMatchTM Integrated Mail System DocuMatch Application Notes ...
Страница 99: ...Index ...
Страница 107: ...Printed on recycled paper ...