Print on A4 Size

elshereif

New member
Joined
Nov 12, 2008
Messages
1
Location
Cairo-EGYPT
Programming Experience
3-5
Hello
I'm taking a snapshot to the computer screen programaticaly from vb.net using windows APIs then i wanna print this snapshot to i found some problem with the resolution of the screen
i mean i developed this code on a wide screen laptop with resolution 1280 by 800 so when i moved my app to a pc with resolution 1024 by 768 the page wasn't fit the drawing so i make some changes in the code to adapt to the new size of screen
so when i moved it again to a small laptop with resolution 1024 by 600 i have to do some changes again
so i wanna any method to enable me to make this page printable on any resolution
thanx in advance
 
In your PrintPage code you can use DrawImage method to dynamically scale image to fit given page bounds rectangle. Most image applications, including the built in image viewer in XP/Vista, give the user the option to zoom and layout images when printing.
 
Back
Top