I needed to print a .bmp file to a printer using Visual Basic 6.
Does anyone know how i can do this using the Printer.Print method?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to use the PaintPicture method of the printer object. Example:
If you already have a picture loaded in a Image or Picture control, you can pass the Picture reference of the object instead of using LoadPicture a second time. Note that this method does not automatically resize the image to fit on the paper, you will have to figure out how much to scale the image yourself.
Edit – More information on using the PaintPicture Method