problem with printer button in print preview - vb.net
Posted on 2012-08-23
The printer button on the PrintPreviewDialog1 doesn't work. I have my report up in preview mode and I want to be able to click the little printer button (printer icon) in the top left of the print preview control and have the report that is being previewed, print. It doesn't. What I get is very strange. If the report has three pages what prints is a 4th page with just headings. Of course I don't want this page, I want the three pages of the report.
I've done a lot of googling and searching as I believe others must have had, and solved, this problem but I can't find any answers.
If I have to put code 'behind' the button I know the code to put there (m_PrintDocument.Print()). I just don't know how to put this code 'behind' this button.
Any guidance would be greatly appreciated. .