I think its possible for windows to turn ON the printer isnt it? if so, any ideas on how you can turn it on from vb?
thanx :)
Printable View
I think its possible for windows to turn ON the printer isnt it? if so, any ideas on how you can turn it on from vb?
thanx :)
If you mean physically power on the printer, the answer is No.
It depends on the printer and the printer driver. Many printers will turn themselves on once their printer driver starts throwing data their way (Hp printers for instance). I do not think there is a Windows API that does this, I am quite sure it is all handled by the manufacturer's printer driver. And as such, not all printers automatically turn on.
That might work if the printer was not actually turned off, but rather in "power save" mode. If the printer is physically turned off, you are not going to be able to physically turn it on unless you flick the power switch.Quote:
Originally posted by memaroller
It depends on the printer and the printer driver. Many printers will turn themselves on once their printer driver starts throwing data their way (Hp printers for instance).
You are most likely correct, but my desktop HP sits dark with no lights on, and powers up when I print a document.
A) You'll have to make sure that it's one of those printers...Quote:
Many printers will turn themselves on once their printer driver starts throwing data their way
B) Then it WOULD be possible, if you set a reference to the printer's DLL. Am I right? Of course I'm right. I think so, at least.
C) Easiest method to turn a printer on:
VB Code:
msgbox ("Please turn your printer on")
You can find out the printer status as per this article.
If the status is PRINTER_STATUS_POWER_SAVE you can probably awaken in by:
VB Code:
Printer.StartDoc Printer.CancelDoc
HTH,
Duncan
If there is a way to test if the printer in turning on
then you can gif a message when the printer is not on
das enyboddy now these test ???
Oops - must wait for you to ask the question first ;)
(see answer just above)