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

Print Picbox troubles, please Help

Status
Not open for further replies.

TyGwyn

Programmer
Oct 5, 2005
31
GB
Still having trouble with my picboxes, I have got two picboxes on a form and I have generated a barcode which I load into picbox1, I then rotate it through 90deg and put the result in picbox2, I have set autodraw to true and refreshed the pic box but when I print the form with frm.print it thinks the second picbox is empty, I know that if I load an image it prints ok but because I have moved the image in by pixel by pixel, I have trouble. I have tried to save the picbox to a file so that I can reload it, but again I save an empty image although my barcode is definately being displayed in the picbox on the screen.
Any help appreciated

Adam
 
Try setting the .Picture property of your picturebox to the .Image property before you save or print.

Example:

Set Picture1.Picture = Picture1.Image


RT
 
Thanks, Have got round the problem, saved the pixels to an image file and reloaded the file before I do a form print.
Not pretty but works ok.

Thanks again.

Adam
 
You might try the way I suggested. Quicker and a lot less work for the program and hard drive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top