C H A P T E R 7 |
3270 Printer |
The 3270 Printer is a Windows application that uses the Sun MTP Client EPI interface to provide a 3270 gateway into Sun MTP. The printer allows printer-based applications to send data to a virtual printer device. The printer can either
Data written to a file can be edited for inclusion in spreadsheets, word processor documents or other applications.
The printer formats data according to the printing rules specified in the IBM 3270 Information Display System Data Stream Programmers Reference.
Note - The 3270 Printer is not available for the Solaris operating environment. |
This section describes how to configure the printer using the command line parameters.
1. Highlight the Sun MTP Printer icon from the Sun MTP Client program group.
2. Select Properties from the Program Manager File menu.
3. When the dialog box for kixprnt.exe appears, add the command line parameters you need
The following command line parameters are accepted:
This section contains examples of kixprnt commands.
Write text to the 3270.txt file in the c:\ directory:
$ kixprnt /f c:\3270.txt |
Writes the print text to a temporary file, then executes a user-written command, usercmd, with the name of the temporary file appended to the end of the command:
$ kixprnt /p usercmd |
If the temporary file for the previous command was created as c:\tmp\453, the user command executed is:
$ usercmd c:\tmp\453 |
The name of the temporary file is always appended to the end of the command. Therefore, if the kixprnt command had flags defined as /c and /g, for example:
$ kixprnt /p "usercmd /c /g" |
then the user command executed is:
$ usercmd /c /g c:\tmp\453 |
The following subsections describe the two methods for starting the printer and connecting to a system
1. From the Sun MTP Client group, double click the 3270 Printer icon.
2. If the System Selection dialog appears, illustrated in FIGURE 7-1, select a system to connect to using either method:
Note - If the printer was configured in the Program Manager with a system name, the System Selection dialog does not appear. |
1. Select Run from the Program Manager File menu.
2. Type the kixprnt command in the Command box with the parameters desired.
See Configuring the 3270 Printer for a description of the parameters.
On startup, the printer appears as an icon, by default. When a connection is made to the Sun MTP region, the netname under which the printer was installed is displayed beneath the icon.
The printer window displays details of the print file, print command, and any error messages, as illustrated in the following figure.
Copyright © 2003, Sun Microsystems, Inc. All rights reserved.