Parameters

char *Printer
A null-terminated string that contains the printer name and the port name. If the printer does not exist, this method fails with an exception.
The value must have the following format:
<Printer name> on <Port Name>
For example:
  • HP LaserJet 4050 Series PCL 6 on LPT1