MEB
08-24-2000, 03:59 PM
How can I print a report file that is jpg format from VB application?
Printing from VBMEB 08-24-2000, 03:59 PM How can I print a report file that is jpg format from VB application? karimahta 08-25-2000, 03:34 AM Check out the PaintPicture method of the Printer object. You may need to load your picture into a picture box first to make sure it fits properly. Anyway, this should give you a start HTH cklim 10-03-2000, 04:09 AM I used paintpicture to resize the picture to my picture box, but when i tried to use printform to print the whole form which contained the picture box, the picture always clipped at the top. How can I resolve this problem? Thanks. karimahta 10-03-2000, 01:46 PM OK, perhaps you need to "Print Screen" your form and print the resulting bit map to your printer. I have attached a project that shows you how to get a snapshot of your form. The picture box (that holds the snapshot) sizes correctly, but it will run off the form as you would need to set up scrollbars, etc. However,maximise the form (after clicking on Active Window) and you will see the whole picture. This should not matter for the printer, as you should hide your picture box anyway (or print the bitmap directly to the printer). Anyway, I am tired and rambling way too much. You will need to work out how to send it to the printer. (look in help) HTH |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum