Print Preview an Imgae
-
Hi, Currently, I am using visual studio.net to program. The language used is vb.net. I need to build an application that allows me to print preview an image and then print the image out. I have draged in a PrintPreviewDialog control from the toolbar and also a OpenFileDialog control for me to browse the image that I want to preview and print it out.In my codes i wrote the followings: Codes: PrintPreviewDialog1.ShowDialog() Dim printDoc As New PrintDocument() printDoc.DocumentName = OpenFileDialog1.FileName PrintPreviewDialog1.Document = printDoc However, the above codes work well for text document and not for image. If I choose an image, the output shown was a white blank piece of paper. Is there a way to change the printpreview dialog settings or there are any alternatives to preview and print an image file? Thank you in advance.