Using the OFCPDFPRT Command with iSeries Office Integrator to Print Network Based PDF Files
From Support
Listed below are instructions for using the new OFCPDFPRT command to print PDF documents with the iSeries Office Integrator software.
iSeries Installation Prerequisites 1.) Install the RJSOFFICE V1.21 library. [1]
PC Prequisites 1.) VB Runtime Files [2]
2.) iSeries Office Integrator PC Component [3]
3.) iSeries Office Integrator PC Component Update [4]
4.) RJS PDF Viewer Component http://downloads.rjssoftware.com/files/rjspdfviewer/rjspdfviewersetup.exe
OFCPDFPRT Command Parameters
Remote System - Enter the PC host name or IP address where you wish to use to print the selected PDF document. *CURRENT will connect to the PC where your 5250 session is running. The iSeries Office Integrator PC component and RJS PDF Viewer must be installed on this PC.
Default - *CURRENT
IFS or PC file - Enter an IFS file name if the PDF file resides on the iSeries or a PC file name if the PDF file resides on your PC's C: drive or a network drive. UNC paths can be used.
If printing an IFS file, the file will be sent to the C:\RJSTEMP folder on the remote PC and then printed. If printing a PC file, the PC file will be directly printed from its PC or network file location.
IFS example: /RJSTEMP/TEST.PDF
PC example: C:\RJSTEMP\TEST.PDF
File type - *IFSFILE - Print an IFS file. *PCFILE - Print a PC file.
PC Printer name - Enter a valid Windows printer name. Can be determined by opening MS Word, Wordpad or any other program and selecting File/Print to see how Windows is reporting the printer name.
Ex: \\Network Printer\PRT01
Page range - The page range you want to print Default-*ALL - print all. Ex: 1-5 prints pages 1-5. Ex: 1-2,5 will print pages 1, 2 and 5.
Copies - Number of print copies. 1- Default
Orient - Printer page orientation - 0- Default - No change. 1 - Portrait. 2- Landscape.
Papersize - Enter a desired paper size - 0 - Auto select paper size. Set the paper size for the selected printer. For available paper sizes, read the Windows SDK documentation.
This setting should normally not be changed.
Paper bin - Enter a paper bin number. 0 - Default bin - Set the paper bin for the selected printer. For available paper bin values, read the Windows SDK documentation.
This setting should normally not be changed.
Auto rotate - 0 - Do not auto rotate as needed. 1- Auto rotate as needed.
Print scaling - 0 - No print scaling. 1- Scale print to fit page margins - recommended.
Delete PC doc after printing - 0 - Do not delete PC file after printing if printing PC file. 1 - Delete PC file after printing if printing PC file,
You would typically only use this setting if you want to delete the PC file after printing. Example: When printing an IFS file, you may want to use this setting to clean up the temp file that gets created in C:\RJSTEMP or you can regularly clear the C:\RJSTEMP folder yourself.
Delete IFS file after printing - 0 - Do not delete IFS file after printing if printing IFS file. 1 - Delete IFS file after printing if printing IFS file,
If you want to delete the IFS file that was just printed after it has been printed, enable this setting. Normally this setting would be 0.
User profile on remote system - Can be any value unless security is enabled on the PC component.
Password on remote system - Can be any value unless security is enabled on the PC component.
Sample Usage of OFCPDFPRT
Example usage to print a PC based PDF File with automatic scaling
OFCPDFPRT RMTSYS(*CURRENT) IFSPCFILE('c:\testreport.pdf') FILETYPE(*PCFILE) PRINTER('\\SERVER1\Printer1') PAGERANGE(*ALL) COPIES(1) ORIENT(0) PAPERSIZE(0) PAPERBIN(0) AUTOROTATE(0) PRINTSCALE(1) DELETEDOC(0) USR(USER)
Example usage to print an iSeries based IFS PDF File with automatic scaling
OFCPDFPRT RMTSYS(*CURRENT) IFSPCFILE('/reports/testreport.pdf') FILETYPE(*IFSFILE) PRINTER('\\SERVER1\Printer1') PAGERANGE(*ALL) COPIES(1) ORIENT(0) PAPERSIZE(0) PAPERBIN(0) AUTOROTATE(0) PRINTSCALE(1) DELETEDOC(0) USR(USER)
