Results 1 to 4 of 4

Thread: Printing the content of picture box

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    Ikaalinen, Finland
    Posts
    26

    Question

    Hello!

    I tried to print the content of a picture box I have drawed some stuff into to my printer. I tried command

    Printer.PaintPicture Me.Picture1, 1, 1

    But Ill always get an error "Invalid Picture".

    Is there any way I can print the content of a picture box easily or hardly?

    Thanks for all help,
    - Ville

    ......................
    Ville Mattila

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I think it's just Printer.Print Picture1.Picture
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3
    Guest
    The graphics could have been on the Image instead of the Picture. If this is the case, then simply transfer it.

    Code:
    Picture1.Picture = Picture1.Image
    Printer.PaintPicture Picture1.Picture, 1, 1

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    Ikaalinen, Finland
    Posts
    26

    Talking Thanks, it worked

    Thanks mr. Megatron! The code you gave worked, but I made a small modification and optimization for it:

    Code:
    Printer.PaintPicture Picture1.Image, 0, 0
    Cheers,
    - Ville
    ......................
    Ville Mattila

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