As you develop a HATS project, you can establish a print session for the associated host application. When the HATS project is running on a WebSphere server, an end user of the application can also print data or display data that is formatted for printing.
When interacting directly with a host application, an end user activates a physical printer to print data from the application. When interacting with a HATS application, the end user does not activate a physical printer. Rather, he or she generates an Adobe Portable Document Format (PDF) file, which can be displayed in a Web browser. The PDF file can also be printed.
This chapter describes the process for enabling print support in your HATS project and for using print support as you develop the project in HATS Studio and as the application is used by an end user.
Before setting up print support for your HATS project, make sure that you (or the system administrator) have performed the following configuration for the host print session:
Refer to the documentation for your 3270 host software for details on how to perform these steps.
For print support to be available for your project, you must obtain the host name and the port number for the Telnet server from the system administrator. Enter these values when you define the connection settings for your project.
To define print support when your HATS project interacts with a 3270 server, do the following:
See Advanced Connection Settings tab for more information.
When an end user of the HATS application issues a command to print files, the HATS application sends a print job to the printer LU and the HATS runtime converts the print job to PDF format. Once the PDF is formatted, the end user can click View Print Jobs on the application keypad to see a list of queued print jobs.
To have more control over 3270 PDF print output format, you can add the following IBM WebSphere Host On-Demand connection session parameters to the list of connection settings:
To define print support when your HATS project interacts with a 5250 server, click the Enable print support checkbox in your project settings. Provide a URL for the iSeries for Web Access (IWA) Printer Output window. The default URL is http://hostname/webaccess/iWASpool, where hostname is the name of the 5250 server. See Advanced Connection Settings tab for more information.
You do not need to perform any additional configuration. When an end user of the HATS application issues a command to print files, IWA converts the host print jobs into PDF format and facilates the download to the end user. The end user can click View Print Jobs on the application keypad to display the IWA Printer Output window. In this window, the end user can select the following print options:
Refer to your IWA documentation for more information on these print options.
To facilitate use of your HATS project by end users, we recommend that you provide documentation on how to use the print support in HATS. Your documentation--provided either in the application's graphical user interface or in some other easily displayed form (perhaps a link in your template)--should describe:
To use HATS print support, an end user should follow these steps:
In the Printer Output window, the end user can click the links for their jobs to either View or Delete the print job. If the user clicks the view link, the print job is displayed as a PDF file in Acrobat Reader, if it is available. If not, the user is prompted to save the file to disk.