I was once created application (in .NET v1.1) using CreateFile() API to open
"LPT1" and pass the handle(System.IntPtr in v1.1,
Microsoft.Win32.SafeFileHandle in v2.0) to new FileStream(). Than you can
write strings to it with TextWriter object.
However, with this way you need to find out how to initialize the printer
for Text printing first. In my case I once have to open notepad and print a
few string first or it'll start printing garbage characters. (Use this as
backup plan if you're in urgent and cannot find out the following
information quickly)
For the escape sequence to be used to initalize printer, please refer to the
appendix of your printer's manual (not always available, through). Since the
sequence varies with brands and model, I cannot give you a general
instruction on how to do this.
Note that if you need to change the font name, font size, line spacing, page
feed, etc. You'll have to use escape sequence command too.
"osmarjunior" <os*********@gmail.com>
???????:11*********************@u72g2000cwu.google groups.com...
I read some messages in the group about printing in text mode.
The PrintDocument class didn't solve my problem, because it prints in
graphic mode.
I have a matrix printer, and printing in text mode is too much
faster...
What options I have to print in text mode in C# ???
Thanks.
Junior.