Using PJL or PCL to query pagecount

  • Thread starter Thread starter Thomas Wopienka
  • Start date Start date
T

Thomas Wopienka

Hello!

I've found several articles about sending PCL or PJL commands to a printer
to query the pagecount. One of the articles was about querying the pagecount
of a printer but only the PJL syntax is discussed. Sending the command
should work like this:

WritePrinter passing this PJL command: Chr(27) & "%-12345X@PJL" & vbLf &
"@PJL INFO PAGECOUNT" & vbLf & Chr(27) & "%-12345X" & vbLf

But I don't know how to receive the answer of the printer if there is an
answer at all. My guess would be to use ReadPrinter API but I don't get this
working.

Does anybody have a solution for this or maybe just a piece of code for
getting info back from a printer - VB.NET or C# is preferred, even C++ could
help.

Thank you!

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top