31.10.2013, 12:01 | #21 |
Участник
|
Запускаем джоб
X++: printJobSettings pjs; int i = 1; ; pjs = new printJobSettings(connull(), true); //pjs.SetTarget(PrintMedium::Printer); //pjs.deviceName('HP LaserJet Pro MFP M521 PCL 6'); //pjs.suppressScalingMessage(true); info(pjs.printerLocation()); info(pjs.printerDriverName()); info(strfmt("The default printer is %1", pjs.DeviceName())); info(strfmt("There are %1 printers", pjs.GetNumberOfPrinters())); while (i<=pjs.GetNumberOfPrinters()) { info(strfmt("Printer No.%1 is %2", i, pjs.GetPrinter(i))); i++; } X++:
The default printer is
There are 1 printers
Printer No.1 is HP LaserJet Pro MFP M521 PCL 6 |
|