CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    How do I send the Contents of Picture box to the Printer ?


    I am having a picture box in which I had drawn some graphics using the Line methods and printed some text using the TextOut API. Now how do I print the information present in it on to the printer.

    Pavan Kalyan




  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: How do I send the Contents of Picture box to the Printer ?

    Like this:

    Printer.PaintPicture Picture1.Image, 0, 0

    For this to include the graphics you added at runtime, be sure to use a Picturebox with the AutoRedraw Property Set to True so that your Changes are Persistent.

    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

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

Featured