Sending raw data to a printer in C#
Recently I needed to send raw data containing printer-specific control characters to a serial printer. At first I started looking into a solution through direct serial communication. But since .NET 1.1 does not come with serial communication support, and I needed to access printers over a network, it seemed logical to send the data through the native Win32 Spooler API.
After some googling and surfing I ended up finding this article in the Microsoft Knowledge Base. It exactly addresses the problem I had and contains full source code for a RawPrinterHelper class.
Tuesday 27 Jun 2006 | Guy Mahieu | .net(t) , c#(t) , tips&tricks(t)
I am studant of MSc computer Science.I have Intel P-IV computer on which window Xp is installed. Also Turbo C v 3.0 and visual C 6 are installed. I want to communicate with Dot Matrix Printer From Honey-well( only printer no drivers etc ) through serial port but in vain.
Kindly send program in C so that i communicate with it.
Any tutorial , lectures etc will be highly appretiated.
regards
request source code