-
Print...
Im trying to making a report to a pos printer in this case epson tmu 220.
The problem is that i dont know how to align right and left and send comands to the printer :S
Somewone can post an example or help me with this??? i tried to make a pdf and print but quality is bad since this is not a grafical printel but a printer line by line
-
Re: Print...
All printing in .NET applications is done the same way: create a PrintDocument, call its Print method, handle its PrintPage event, use GDI+ to draw your printed page.
In the PrintPage event you use the e.Graphics.DrawString method to draw text on your page. That method allows you to control everything about the printed text, including font, colour and alignment.
Read the documentation for the PrintDocument class and its members, then read the documentation for the Graphics class, particularly the DrawString method. The 2003 101 Samples from Microsoft also includes a printing example.