Hello,
I have been messing trying to see if I can get a response on whether my printer is switched on or off
On my Epson, when it is ON, Attributes returns 2624; when it is OFF, Attributes returns 3648
After a bit of digging, I realised that other makes of printers return similar values
ON:
Canon and Epson = 2624
Brother and Konica = 576
OFF:
Canon and Epson = 3648
Brother and Konica = 1600
Could you run this console program with your printer turned off, note the name of the printer and attribute, and then run it again with the printer on, and do the same
I obviously can't test it with anything else here, as I have only the one printer. Oh, and if anyone as an HP printer, that would be helpful, as well
Many thanks,
Brian
I am not sure if it is due to my printer being a Network printer, but this is what I got for both on and off:
PrinterName : HP Officejet Pro 8600 (Network)
PortName : CN26CBT3KP05KC
DriverName : HP Officejet Pro 8600
Attributes : 2624
Status : (null)
Bill
Brian,
Same as Canon and Epson for my HP Deskjet 2560C
Andy.
Brian,
My Brother HL-1210W connected to an USB port reports same values as for your Brother printer.
Egil
Thanks, chaps - gives me something to work on. Any more?
Brian
Here's a little test for you. The code should report if you have a default printer installed, or whether your default printer is switched on or off
Brian
I am just catching up here today. I haven't been on this forum for awhile it seems.
Here is something to think about.
2624 = 0000 1010 0100 0000
3648 = 0000 1110 0100 0000
576 = 0000 0010 0100 0000
1600 = 0000 0110 0100 0000
It looks like the 10th bit (bits start with 0) is set when the printer is unavailable. I don't know if this is for all printers or not but it is interesting.
Later,
Clint