Luegisdorf
2/1/2006 11:39:00 AM
Hi Everyone
I tried to set the deviceName on a printjobsettings object at runtime. I
used a deviceName which I get with the method getPrinter() before (like
'\\xxx\HP xxx'). Unfortunelly the deviceName is still the same like before
(default printer). Does I do anything wrong?
that's the sample code:
printJobSettings pjs = new PrintJobSettings();
int i;
;
for (i = 1; i <= pjs.getNumberOfClientPrinters(); i++)
{
info(pjs.deviceName(pjs.getPrinter(i));
// printer still has the old printerDevice
}
Thank you for your advices.
regards
Patrick