Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello I a m currently developing an application that prints a receipt.
I am using PrintDocument class but because this class only prints in graphics mode, I cant get a quality printing because I am printing to a thermal printer. When I try to print in text mode via POS.NET I cant get it work because the printer its not recognized by the SDK. I come here after watching a lot of forums and no answer.
I want to know these things.
A way the print in textmode from .NET
if not how I can after creating a text file, send it toi the printer, using shell commands
thanks in advance
Posted

1 solution

Try removing the printer driver and install it as a Generic / Text only printer. Check this link for more info:
http://support.mfm.com/support/std_procedures/xpgenericprinter.html[^]

With this you might need to send specific control codes yourself but for normal text printing it should work fine.

Good luck!
 
Share this answer
 
Comments
Vasily Tserekh 20-Jul-12 14:35pm    
My problem its not on the printer its HOW I can print in text mode from .NET. Print document class only support graphic mode
E.F. Nijboer 20-Jul-12 15:52pm    
Check out this article:
http://www.codeproject.com/Articles/10180/How-to-print-text-in-C

And in the most extreme case... just send raw data to the printer:
http://support.microsoft.com/kb/322091

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900