Show/Hide Toolbars

Inventu Viewer+ .NET Programmer's Reference

Navigation: HostConnection Class > Methods

startDevicePrinter() and startDevicePrinter(deviceID, [fileType], [envVars])

Scroll Prev Top Next More

This method is for activating host device printing--at the time of this writing, this is only for TN5250 terminals with the Printer feature active for terminal emulation licenses.

 

The device emulated is a IBM-3812-1 and will be associated with a started 5250 terminal session, using this command.  Only one printer can be started for a active display session.

 

bool HostConnection.startDevicePrinter([optional] String deviceID, String fileType  );

 

Arguments

 

HostConnection

 Required. HostConnection object.

 

deviceID

Optional. The deviceID to be registered with the AS400 / IBMi host -- using the RFC 4777 titled IBM's iSeries Telnet Enhancements (https://tools.ietf.org/html/rfc4777).  If this value is omitted, the active deviceID for the display session will have a PRT appended as the device name.

fileType

Optional (required with deviceID). A supported fileType -- at the time of this writing, this is limited to "htm" for an HTML-based print.  Future options are expected to include "pdf" for a PDF print, and "pcl" for use with an AS400 *HP4 style or other PCL-based transparent output to be converted to PDF using an external utility.

envVars

Optional Telnet Environment Variables for a TN5250 printer of the format NAME:VALUE;[...] as documented in RFC 2877 Section 7.

 

Remarks

 

The device emulated is a IBM-3812-1 for 5250 and IBM-3287-1 for 3270 and will be associated with a started terminal session, using this command.  Only one printer can be started for a active display session.

 

See Also

 

stopDevicePrinter

 

Applies To: HostConnection object

 


© 2022 Inventu Corporation