hwISession Print

Prints the current session.

Syntax

hwISession_handle Printorientation, type, destination

Application

HyperWorks Tcl Query

Inputs

orientation
The orientation of the printout. Options include "landscape" or "portrait".
type
The type of the printout. Options include "file" or "printer"
destination
The destination of the printout.
If type is file, this is the output filename.
If type is printer, this is the printer name.

Example

To print the current session in landscape orientation to a printer named LJ1:
hwi GetSessionHandle mySessionName
mySessionName Print landscape printer LJ1

Error

Success (0) or an error code.

3 = HW_InvalidHandle - The handle used to invoke the method is no longer valid.