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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I Print the contents of a PictureBox?

Status
Not open for further replies.

MarcMellor

Programmer
Jan 12, 2002
34
0
0
US
I have a large number of science questions stored in an Access database as Long binary data (this allows me to use MSWord to combine a complex mixture of text and diagrams). These can be downloaded into a PictureBox according to parameters set up by the user. I want to be able to print the contents of the PictureBox. I have not done any VB on printing before, so I don't know anything about it at all.

I've tried:
Printer.Print Picture1.Picture
and
Printer.Print Picture1.Image
I've also done:
Dim Question As Image
Question = Picture1.Picture
Printer.Print Question
and variations on the above - all that is printed is
3 or 4 numbers.
Printer.Print Text1.Text
prints the contents of a text box just fine, so why
won't the above work?
Any Ideas??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top