Printer communication

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

Thomas Wopienka

Hello!

I wrote a small application that sends RAW data to the printer using Windows
API OpenPrinter, WritePrinter,... and now I want to get the answer from the
printer using Windows API.

Is this possible at all?
What API function do I need to call?
Is there any other way to get this done (for printers that are connected
locally using parallel or USB port)?

I tried using ReadPrinter for the printjob that I've just created - but this
just returns the RAW information that I've sent to the printer.

I need to find out the response from the printer since I'm sending a PJL
command that should return the pagecount of the selected printer.

Thank you for any hint!

Thomas
 
Bidi communication is not supported for applications, only for language
monitors.

From Windows XP and later you can use the IBidiRequest interface.

/christoph
 

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