|
-
May 30th, 2007, 12:53 PM
#1
Thread Starter
Hyperactive Member
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
The Future Is Always The Way To Live The Life
-
May 30th, 2007, 07:08 PM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|