Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetPrinter - method of object PmPrinter

Description:
By calling this method it is possible on runtime to change the routing the PmPrinter object for example to another printer (by the input box) or to the OS Windows default printer.
Syntax:
SetPrinter(nAttr As Long) As Boolean
Calling:
oPrinter.SetPrinter nAttr
Parameters:
nAttr(Long) Attribute indicating the way of reading printer parameters
0 - reading by the input box
1 - reading the system Windows default printer
Example1:
Reading the Windows printer by the selection from the input box
PmPrinter.SetPrinter 0
Example2:
Reading the Windows default printer
PmPrinter.SetPrinter 1
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice