PrintDialog Doubt

  • Thread starter Thread starter Dante
  • Start date Start date
D

Dante

Hi

I have a doubt about the PrintDialog component. I can print all pages
I draw in the print document, but i also want to allow printing some
pages, so I set the property "PrintDialog.AllowSomePages" to true.
The problem is that the print dialog ignores this and no matter what I
write in the repective textbox it keeps printing all the pages in the
print dialog. So my doubt is, do i have to redraw everything manually
(in the print document) or am i missing some point?

Thanks in advance
Dante
 
Your print document needs to handle the "AllowSomePages" attribute.

What I generally do is keep track of what page I am on and have a flag for
whether the current page that I am processing should be printed or not.
 
I am having some trouble doing what you sugested. Can you show me an
example of some code doing that?

thanks
Dante

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Back
Top