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

Image Printing in VB5

Status
Not open for further replies.

0mega

Programmer
May 3, 2001
3
US
How would I go about making a program print an image from a file named img123 (in VB5, the actual file name is 123.bmp) so that after the program is compiled, I don't need the original picture file, ONLY the compiled program (with the picture integrated into the program itself) and once the program is run it prints the image I named img123 upon the start up of said program.
***********
EX:

Private Sub Form1_Load()

Print.img123

End Sub
***********

I've tried this code and it doesn't work... Can anyone give me a suggetion on how to make a printer print ONLY an image I named img123 not the entire form??
 
Your best bet would be to have the imgage in a PictureBox. Then you can use the following code:


object.PaintPicture PictureBoxName.Picture

Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top