Printer Tray Support when Printing via OFCRUNPC
From Support
| | If you have a question or seek clarification, please call Technical Support. |
Problem:
I want to be able to control the paper drawer used when printing via the iSeries Office Integrator or FTP Remote Command Server
Solution:
1.) Download and install V1.12 or later of the FTP Remote Command Server or V1.13 or later of the iSeries Office Integrator.
2.) After installation of the update, run the "RJS Printer Tray List" program from the program group to determine the paper tray numbers associated with the drawers on your printers. These settings come from the selected print driver. The RJS Printer Tray List program simply allows visibility to these settings because they are important when telling MS Word which paper drawer to print from.
3.) When running the MERGELETTERPRINT directive from the FTPRUNPC or OFCRUNPC commands, use the following syntax
Example CL usage:
OFCRUNPC CMD('MERGELETTERPRINT~C:\TEST.DOT~C:\TEST.TXT~HP Laserjet 4~1~2') 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
This sample merges the selected template with the selected data and prints to the selected printer. The first page is printed to drawer 1 and all other pages are printed to drawer 2.
4.) When running the WORDFILEOPENPRINT directive from the FTPRUNPC or OFCRUNPC commands, use the following syntax:
Example CL usage:
OFCRUNPC CMD('WORDFILEOPENPRINT~C:\TEST.DOC~HP Laserjet 4~1~2') OPTION(*WORDOLE)
Parm 1 = Word command Parm 2 = File Name Parm 3 = Printer Name Parm 4 = First Page Drawer Number Parm 5 = Other Pages Drawer Number
This sample opens the selected document and prints to the selected printer. The first page is printed to drawer 1 and all other pages are printed to drawer 2.
