|
|
Question : Problem: Query Printer for Page Count TCP/IP
|
|
I'm trying to accuratley count the number of pages a printer has counted and want to connect to the printer and send commands.
How do I connect to the printer (port?) What commands do I send to get the page count?
Eventually i want to include this in a VB project.
Thanx!
|
Answer : Problem: Query Printer for Page Count TCP/IP
|
|
I tried your code on my printer (an HP LaserJet 2200DTN). It worked. Below is a transcript of the telnet session (returning 39,320, which is indeed the printer's page count).
I suggest: 1) try a different postscript query. Perhaps your printer is too old to return page count (though my impression was that all postscript devices do). 2) try sending it some postscript that will make it do something. Perhaps you are successfully sending, but cannot receive.
Cheryl
@Silver % telnet 192.168.254.21 9100 Trying 192.168.254.21... Connected to 192.168.254.21. Escape character is '^]'. %! statusdict begin pagecount == end flush 39320
|
|
|