Results 1 to 2 of 2

Thread: Please help (v. desperate) Printer object

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Ireland
    Posts
    9
    In VB4, I have placed pictures on the Printer object using e.g.
    Printer.PaintPicture (Xpos,etc.,,,,x.bmp)

    I tried using Printer.Print and EndDoc to send the document to the printer, but nothing seems to happen. How do I get the whole printout sent to the printer to print?

    Thanks for any help. I'm in trouble if I don't get this sorted out!!!!



    Patrick Scahill

  2. #2
    Guest
    Try this code. Make a Form with a PictureBox and a CommandButton. Make sure that there is a Picture loaded into the PictureBox.

    Code:
    Private Sub Command1_Click()
    
        Printer.PaintPicture Picture1.Picture, 100, 100
        Printer.EndDoc
    
    End Sub

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