Merging, Printing and Saving via iSeries Office Integrator
From Support
| | If you have a question or seek clarification, please call Technical Support. |
Problem:
How to merge into a Word template, print the document and then save the document via the iSeries Office Integrator.
Solution:
1.) Download and install V1.1.58 or later of the iSeries Office Integrator.
2.) When running the MERGELETTERPRINTSAVE directive from the OFCRUNPC command, use the following syntax
Example CL usage: OFCRUNPC CMD('MERGELETTERPRINTSAVE~C:\TEST.DOT~C:\TEST.TXT~HP Laserjet 4~1~2~ ~ ~ ~C:\SAVEDDOC\MERGED.DOC') OPTION(*WORDOLE)
Parm 1 = Word command
Parm 2 = Template File Name
Parm 3 = Merge DataFile Name
Parm 4 = Printer Name
Parm 5 = First Page Drawer Number
Parm 6 = Other Pages Drawer Number
Parm 7 = SQL Where clause for selecting data from Merge Data file on PC after transfer from AS400. The WHERE is implied in the statement
Ex: CUSNUM >= 123456 -or- CUSNUM >= 123456 and CUSNUM <= 999999
Parm 8 = Duplex mode
SIMPLEX
DUPLEXVERTICAL
DUPLEXHORIZONTAL
Parm 9 = Copies
Parm 10 = Destination Path
