Results 1 to 2 of 2

Thread: I need to know how to print a form, or picture box.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Posts
    65

    Post

    I have to use the common dialog box to print a picture box, and I have some idea of how to do it, but can't really get it to work.

    Could someone help?

  2. #2
    Junior Member
    Join Date
    Feb 2000
    Posts
    21

    Post

    Here is the code I use to do so...

    Printer.PaintPicture Picture1.Picture, _
    (Printer.ScaleWidth - _
    Picture1.ScaleWidth) / 2, _
    (Printer.ScaleHeight - Picture1.ScaleHeight)_
    / 2
    Printer.EndDoc


    Tipi

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