AS/Setting up NIPrint for AS/400 Usage
From Support
PC Setup
1. Make sure the PC has a static IP address. A static IP address is an address that doesn't change. Note: Remember this address. It will be needed when configuring the AS/400.
2. From the Windows 95 or NT Control Panel, install a printer driver for the HP Laserjet 4 printer. All PCL printing will be channeled through this printer device.
3. From the Windows 95 or NT Control Panel, change the Print to the following port setting to print to port C:\RJSAFP.PCL for the HP Laserjet 4 printer device. This setting will automatically cause a file named C:\RJSAFP.PCL to get created each time a report file is printed to the HP Laserjet 4 printer device.
Note: Under Windows NT if the port C:\RJSAFP.PCL doesn't exist, a port must be manually added from the Ports Tab under the printer properties. When you click the Add Port button, select "Local Port" and click the New Port button. Enter C:\RJSAFP.PCL for the port name and click OK to create the port. Then you can select C:\RJSAFP.PCL as the port for output.
4. Install the NIPrint Software software on the PC. The NIPrint demo can be downloaded from the following Web Site: http://www.netinst.com or can be installed from the NIPRINT subdirectory on the RJS Software Systems Installation CD.
5. Start the NIPrint software so it can be configured for use.
6. Go to the Configuration menu and select General Settings. Enable the "Enable Local Print Server" setting.
7. Go to the Configuration/Local Print Configuration menu and click the add printer button. For the printer name, type RJSEMAIL. Then highlight the HP LaserJet 4 driver in the list. Next click the "Advanced Print Settings" button.
8. For the "Convert text from Unix to DOS format" setting, select: "Do not convert".
9. Disable the "Allow to print banner page" setting. This can cause problems with downloading reports because the AS/400 will send cover pages automatically with each report. By disabling this setting we're telling the AS/400 we don't need any cover pages.
10. Make sure the "Add formfeed" setting is disabled.
11. For the "Action after receiving a print job" setting, select: "Close connection immediately".
12. Click OK to save the "Local Print Advanced Settings".
13. Click OK to save the "Add/Edit Local Printer" settings.
14. Click OK to save the "Local Print Configuration".
Sending Test Printer Output to the PC
Use the following example commands to send a test report to the PC from the AS/400:
a.) Send report and convert from AS/400 to ASCII HP4 format:
SNDTCPSPLF RMTSYS(RJSEMAIL) PRTQ(RJSEMAIL) FILE(SPOOL) JOB(111321/USER/JOB) SPLNBR(*ONLY) DESTTYP(*OTHER) TRANSFORM(*YES) MFRTYPMDL(*HP4) WSCST(QSYS/QWPTIFFG4) SEPPAGE(*NO)
b.) Send report and do not convert the data because it's already in ASCII format:
SNDTCPSPLF RMTSYS(RJSEMAIL) PRTQ(RJSEMAIL) FILE(SPOOL) JOB(111321/USER/JOB) SPLNBR(*ONLY) DESTTYP(*OTHER) TRANSFORM(*NO) MFRTYPMDL(*HP4) SEPPAGE(*NO)
