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

Printing Scanned Doc (.jpg) 1

Status
Not open for further replies.

raisin96

Programmer
Oct 10, 2002
21
0
0
US
Hi,

How can I resize an image (scanned image) for printing so that it will fit in one page. Everytime I tried to print it, it always print it in large sizes. But when I tried printing it using the Photoeditor it fits in one page. Below are the lines I used to print the scanned doc:

Picture1.Picture = LoadPicture("C:\scanned\doc1.jpg")
Printer.PaintPicture frm_View.Picture1, 20, 20
Printer.EndDoc

Thanks.
 

There are a couple of ways to accomplish what you want. Easiest way I can think of is using the Wang/Kodak ImageEdit control. Another way would be found in this thread708-428674 at the bottom of the code I pasted there is a sub PrintPictureToFitPage that should accomplish what you want also.

Good Luck

 
Thanks vb5prgrmr. It tried it and it worked perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top