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 can I print the contents of a PictureBox?

Status
Not open for further replies.

MarcMellor

Programmer
Jan 12, 2002
34
0
0
US
I can't seem to print the contents of a picture box - I just get some numbers. Printing the contents of a TextBox works fine with Printer.Print Text1.Text so why doesn't Printer.Print Picture1.Picture or Printer.Print Picture1.Image work?
Any ideas?
 
Try this!!!
Printer.PaintPicture Me.Picture1, 0, 0

The syntax is as follows:

object.PaintPicture picture, x1, y1, width1, height1, x2, y2, width2, height2, opcode


x1,y1 is the starting coordinates of the picture

Hope it helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top