hwISession AddPrinter
Adds a printer to the printer list.
Syntax
hwISession_handle AddPrinter name, command, (single_window_command)
Application
HyperWorks Tcl Modify
Description
This command adds a printer to the printer list.
Inputs
- name
- The name of the printer that is to be added.
- command
- A command that passes the temporary file to the printer (ex: lpr-CLJ3).
- (single_window_command)
- The input is a command that passes the temporary file to the printer as a text file (rather than a JPEG, as it normally would). This is an optional variable.
Example
hwi OpenStack;
hwi GetSessionHandle sess;
sess AddPrinter CLJ3 lpr-CLJ3;
Error
Returns success (0) or an error code.
Keywords
HyperWorks
Tcl
Modify