OpenPrinter Command

Starts a print session. This may be used for customised or non-interactive printing. See Non-interactive and Customised Printing

OpenPrinter [/portrait ] [/numCopies <num-copies>] [/index <index>] [/title <title>] [/printer <printer>] [/greyscale on|off]



Set to 'on' to enable grey-scale printing


Printer to use. This can be found from the function GetPrinterInfo . If omitted, the application default printer will be used.


Number of copies to print.


If specified, print will be in portrait orientation, otherwise it will be landscape


Specify printer by name. If omitted, printer will be defined by its index (see below) or the application default printer will be used.


Title of print job . This is used to identify a print job and will be displayed in the list of current print jobs that can be viewed for each installed printer from control panel. title is not printed on the final document.