>Hmmmm... The really important thing is being able to set it back on-line so the printer can print again without extra user interaction(by going through Start->Settings->Printers Right-click on printer->uncheck User Printer Offline). In a POS environment during a rush, this is impossible. I can have the user be required to press a button in my app to do this if I could just call the process through a function-call. I need to find a solution quickly, as it really hurts the functionality of our software(and I'm getting heat from the boss on the matter). What was MS thinking by not re-checking to see if the printer is back on-line?!? At the very least, it could re-check to see if the printer is back on-line(software-wise) on the computer hosting the printer, and if so, set it back on-line on the local computer. Thanks for your help!
>
Hi Derek,
You might want to take a look at Q140285 on the MS KB (HOWTO: Modify Printer Settings by Using SetPrinter). Basically, this was my source for the code I posted earlier. In reality the change isn't a big one. Whether or not it will do want you want is another question entirely, and one I'm not qualified to answer.
George
Ubi caritas et amor, deus ibi est