Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing an existing picture box content

Status
Not open for further replies.

erstout

MIS
Dec 11, 2002
16
0
0
US
It may not be possible to do this, but I'm crossing my fingers someone can figure out an approach that will work.

I have a picture box with existing content (lines, circles, dots, text, etc.) already drawn into it - I'm trying to figure out if there's a way to dump the picBox contents to a printer object.

I can't use picBox.picture because of course, it isn't a picture I'm trying to print, and picBox.Image only seems to stall the printer.
Suggestions?
 
Never mind...
I suddenly realized that I failed to to a printer.enddoc ...once I did that, my spooling document completed after using picbox.Image.

 

try
[tt]
Printer.PaintPicture Picture1.Image, 0, 0
Printer.EndDoc
[/tt]

Work for me. If you have a large picture it will take awhile for it to spool.

Good Luck


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top