Click here to Skip to main content
15,886,045 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Use a Function Use LPrinter to send print text in Raw Mode to My LQ300 Printer
when Send arabic string to printer and convert this string to UTF8 printer prints ????
How to solve this problem?
Posted
Comments
Sergey Alexandrovich Kryukov 26-Jun-13 2:35am    
Not enough information. A comprehensive but short code sample could help.
—SA

1 solution

Your printer model doesn't seem to support unicode. You will have to transform your string into a bitmap and print that. Start with the PrintDocument[^] class's example. The interesting part ist the line
C#
ev.Graphics.DrawString(...
Here, you can use any font that is installed in your OS. It is converted to a bitmap and then sent to the printer.
 
Share this answer
 
Comments
Hekmat90 26-Jun-13 4:55am    
I can Print by this method but the hole page eject by printer .i want stop paper after each print
lukeer 26-Jun-13 5:34am    
Collect lines until you have enough for a whole page. Then print the whole page in one go.
Hekmat90 26-Jun-13 6:00am    
I want Use Roll Page and Cut it after multi line print
SalimF 4-Jul-22 13:07pm    
Send paper cut command at the end of print command, is ASCII character .
https://mike42.me/blog/what-is-escpos-and-how-do-i-use-it

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