Results 1 to 3 of 3

Thread: printing an image file

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jul 2000
    Posts
    52

    printing an image file

    I am writing a program where I am using a variable of type image. I have an image stored in it. Now, all I need to do is to print the image in that image variable to the printer. I know I have to use the PrintDocument object, but I can not figure out how to do it. Thanks for the help!

    shootsnlad

  2. #2
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Re: printing an image file

    this is a very old post , but i am still interesting in it

    does any one knows How ?????

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

    Re: printing an image file

    The "e" argument to the PrintPage event handler of a PrintDocument has a Graphics property that is used to draw objects on the print surface. You just call the DrawImage method of that object.
    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