Results 1 to 2 of 2

Thread: Printing Pictures

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 1999
    Location
    Tring, Herts, UK
    Posts
    3

    Printing Pictures

    Hi all,
    I have been programming VB through VB4,5 and now 6 for some time. I now have the need to print images/pictures from within the application.
    The picure is displayed in a Picture box and is loaded from a BMP file.
    I would prefer to print the actual file rather than from the Picture box but knowing how to do both would be good.
    Any help would be greatly appreciated

  2. #2
    Si_the_geek
    Guest
    Use the printer object, the PaintPicture method would be useful.

    VB Code:
    1. Printer.CurrentX = Printer.ScaleWidth / 2
    2. Printer.CurrentY = Printer.ScaleHeight / 2
    3. Printer.Print "text to print"
    4. Printer.Paintpicture picture, xpos,ypos
    5. Printer.EndDoc

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