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
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