Ensure connection to a POSPrinter connected via COM

Posted by Alexander on Stack Overflow See other posts from Stack Overflow or by Alexander
Published on 2009-09-08T14:25:01Z Indexed on 2010/04/06 18:43 UTC
Read the original article Hit count: 363

Hi,

I need to make sure that the connection to a POS printer is successful before writing data to the database and then printing a receipt. The POSprinter is normally of type BTP 2002NP but may differ. The common thing is that they are all connected via COM-port and NOT usb, so no drivers installed at all on the client.

Can I send some kind of "ping" on a COM-port and check if a device is connected and turned on? Any help or suggestions are very much appreciated.

Additional information, the application is developed in VB.net and Visual Studio 2008

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about comports