Results 1 to 2 of 2

Thread: Print...

  1. #1

    Thread Starter
    Hyperactive Member gooden's Avatar
    Join Date
    Dec 2006
    Location
    Portugal
    Posts
    274

    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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width