mardi 7 février 2012

Show list of printers

static void ShowListOfPrinters(Args _args)
{
printJobSettings printJobSettings;
sysPrintOptions sysPrintOptions;
map printerMap;
mapIterator mapIterator;
;
printJobSettings = SysPrintOptions::newPrintJobSettingsOnServer();
sysPrintOptions = new sysPrintOptions();
sysPrintOptions.setPrintJobSettings(printJobSettings);
sysPrintOptions.buildPrinterMap();
printerMap = sysPrintOptions.getPrinterMap();
mapIterator = new mapIterator(printerMap);
mapIterator.begin();
while (mapIterator.more())
{
info(mapIterator.value());
mapIterator.next();
}
}

Aucun commentaire:

Enregistrer un commentaire