Visual C# Developer Center > Visual C# Forums > Visual C# General > Responding to a printer status query from a device that connects to serial printers.
Ask a questionAsk a question
 

AnswerResponding to a printer status query from a device that connects to serial printers.

  • Saturday, November 07, 2009 4:00 AMryanphillips112 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have written a program to emulate a serial printer in C#.  My program uses the SerialPort class and connects to devices through a COM port. The program works fine with devices that just print and don't query the printer status.
    However, if a device does check for "printer status online" it stops trying to print as it thinks the printer is offline.
    My question is, how do I have my program respond to a printer status query from a device?
    Microsofts Hyperterminal does this somehow.  As soon as I close my program and then fire up Microsofts Hyperterminal the device will read "Printer status online".

Answers

All Replies