Well, in the real application I had a report class that handled laying out and printing the information on the Graphics object for the PrintDocument's PrintPage event. Long story short, I defined the first and last row of the data for each page. Then I just made a method that got the starting...
To BobRodes:
The HasMorePages property of e defaults to false. When it is set to false the print job is finished. So setting that value to false on pages that aren't in the range of pages to print would cause the pages afterwards to stop printing.
For example, if I wanted to print pages 2-3...
I tried it, but it still prints all of the pages. Except now the pages that aren't in range are blank, since I didn't draw anything when the PrintPage event was called for them.
Hi. I'm embarrased that I'm having so much trouble with something so simple, but here it goes.
In my code I have a PrintDialog that allows the user to select a page range to print (the AllowSomePages property is set to true), but when a range is selected (ex: pages 2-3) in the dialog it still...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.