Parameters

String Printer
Contains the name of the printer. 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