Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
MyPrinters = pGetPrtList(0) NumberofMyPrinters = ItemCount(MyPrinters, @TAB) For x = 1 To numberofmyprinters item = ItemExtract(x, Myprinters, @TAB) type = pGetPrtInfo(item, 17) Display(20,item, type) NextThis code displays a message for each installed printer. My problem is the status returned from the pGetPrtInfo is always 0. Interestingly if I go to the printers control panel I can see that the status of one printer is "Printer not found on server, unable to connect". But it still returns 0.. If I try to print to it I get an error right away. Surely the status must be updated?
What do you think?
The status of printers and print jobs are updated by the Win32 Spooler during the despool of a print job. At all other times, when that printer is not despooling and reports no state information, the printer is considered to be ready and idle.
Article ID: W16850
File Created: 2017:07:28:12:58:37
Last Updated: 2007:07:03:13:26:33