-
Hello!
I tried to print the content of a picture box I have drawed some stuff into to my printer. I tried command
Printer.PaintPicture Me.Picture1, 1, 1
But Ill always get an error "Invalid Picture".
Is there any way I can print the content of a picture box easily or hardly?
Thanks for all help,
- Ville
-
I think it's just Printer.Print Picture1.Picture
-
The graphics could have been on the Image instead of the Picture. If this is the case, then simply transfer it.
Code:
Picture1.Picture = Picture1.Image
Printer.PaintPicture Picture1.Picture, 1, 1
-
Thanks, it worked
Thanks mr. Megatron! The code you gave worked, but I made a small modification and optimization for it:
Code:
Printer.PaintPicture Picture1.Image, 0, 0
Cheers,
- Ville