Hi all,
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
Hi all,
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
You have to use the PaintPicture method of the printer object. Example:
Printer.PaintPicture LoadPicture(filename), xPosition, yPosition, _
[Width], [Height]
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.
Help me i cant print a bmp contained in a picture box on my form with this method. in this line vb show a type mismatch error.
Please solve my problem. thanx