PDA

Click to See Complete Forum and Search --> : Printing the content of picture box


Skyline
Aug 7th, 2000, 06:58 PM
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

Sastraxi
Aug 7th, 2000, 11:06 PM
I think it's just Printer.Print Picture1.Picture

Aug 8th, 2000, 08:17 AM
The graphics could have been on the Image instead of the Picture. If this is the case, then simply transfer it.


Picture1.Picture = Picture1.Image
Printer.PaintPicture Picture1.Picture, 1, 1

Skyline
Aug 8th, 2000, 11:05 AM
Thanks mr. Megatron! The code you gave worked, but I made a small modification and optimization for it:


Printer.PaintPicture Picture1.Image, 0, 0


Cheers,
- Ville