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!

Change resolution of a papersize

Status
Not open for further replies.

Kalin

Programmer
Jul 24, 2001
76
0
0
NL
Hi,

I have the following problem....

I want to print some image on a sheet of A4 paper, my printer is capable of a much higher resolution than de default resolution of A4 paper in Visual Basic. How can I change this....???

Example:

Standard size for A4 in Visual Basic = 780 * 1130

My printer is capable of printing at 600 DPI, so to my knowledge I should be able to print at a much higher resolution.



Grtz,

Kalin
 
After quite some puzzling I finally found the answer to this question.

Enlarge the bitmap to whatever you want it to be, than set the e.Graphics.PageScale setting (in the PrintPage event) to Papersize divided by Bitmapsize.

This will do the trick.

Grtz,

Kalin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top