coolpjmartin
Member
- Joined
- Aug 8, 2006
- Messages
- 9
- Programming Experience
- Beginner
Hi
I am developing a vb.net application that displays pictures (JPG and PDF etc) inside a picturebox,
I have set the picturebox size mode to Zoom so as the image displays correctly in the picturebox.
These images are held on the hard drive.
I have added a print dialog, print preview dialog, print document to the form and I am trying to print the image
displayed in the picturebox to the printer, the problem I have is in the print preview it only display part of the image and does not display the image as in the picturebox
If I chnage the size mode on the picturebox to normal the image display in the picturebox is no longer displayed in the picture correctly, what you see in the picturebox is now the same as the image in the print preview.
Is there anyway I can scale the print preview to fit as in the picturebox (in zoom mode), Some images I want to print need to be scaled to fit a full page A4
can anbody help with some same code please
Thanks
I am developing a vb.net application that displays pictures (JPG and PDF etc) inside a picturebox,
I have set the picturebox size mode to Zoom so as the image displays correctly in the picturebox.
These images are held on the hard drive.
I have added a print dialog, print preview dialog, print document to the form and I am trying to print the image
displayed in the picturebox to the printer, the problem I have is in the print preview it only display part of the image and does not display the image as in the picturebox
If I chnage the size mode on the picturebox to normal the image display in the picturebox is no longer displayed in the picture correctly, what you see in the picturebox is now the same as the image in the print preview.
Is there anyway I can scale the print preview to fit as in the picturebox (in zoom mode), Some images I want to print need to be scaled to fit a full page A4
can anbody help with some same code please
Thanks