Hi,
Newbie here, I got my print function working so that it will take an image from a picture box and print it. But the problem I am having is that the original image is larger than the paper size.
I found this thread http://www.vbdotnetforums.com/showthread.php?t=12605&highlight=printing
JohnH says:
"Calculate the scale you want limited to the e.MarginBounds of the paper. MarginBounds is the printing area within margins settings, and this vary according to what paper size and orientation (landscape/portrait) user chooses to print on."
Do I do this in the print page event? If so I am not sure how the code should go.
So basically how do I scale my image down to fit within the margins of the page?
G
Newbie here, I got my print function working so that it will take an image from a picture box and print it. But the problem I am having is that the original image is larger than the paper size.
I found this thread http://www.vbdotnetforums.com/showthread.php?t=12605&highlight=printing
JohnH says:
"Calculate the scale you want limited to the e.MarginBounds of the paper. MarginBounds is the printing area within margins settings, and this vary according to what paper size and orientation (landscape/portrait) user chooses to print on."
Do I do this in the print page event? If so I am not sure how the code should go.
So basically how do I scale my image down to fit within the margins of the page?
G