Results 1 to 2 of 2

Thread: Print out PictureBox on printer

  1. #1

    Thread Starter
    Hyperactive Member Matt-D's Avatar
    Join Date
    Nov 1999
    Location
    Mettmann, Germany
    Posts
    305

    Post

    In my program, there is a picture box.
    Into this picture-Box I copied a picture which I made in
    MS-Paint.
    How do I print it out on the printer ?, because
    there's no picture property.

    Thanks for some help, Matt

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Post

    For Each MyPrinter In Printers
    If MyPrinter.DeviceName = <Printer Name that you used for the printing job> Then
    Set Printer = MyPrinter
    Exit For
    End If
    Next

    Printer.Orientation = vbPRORLandscape
    Printer.PaperSize = vbPRPSA4
    Printer.PrintQuality = vbPRPQHigh
    Printer.Print " "
    Printer.PaintPicture Picture1.Picture, 0, 0, Picture1.Width, Picture1.Height
    Printer.EndDoc

    Well, hope it help you.

    Edited by Chris on 03-11-2000 at 03:43 PM

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