Reputation: 2228
I would like to print specific pages using Windows Forms PrintDialog
.
For example, pages I'd like to print are something like:
1-3, 5, 7-9, 15, 21.
Can this be achieved using regular PrintDialog? I only found that it's possible to set from and to pages.
Upvotes: 1
Views: 842
Reputation: 5361
I don't think you can achieve that using regular PrintDialog. It allows only one range.
The PrintRange property is used by the PrintDialog.when the user selects a print range. The default PrintRange is AllPages. To enable the user to specify a range of pages to print, the PrintDialog.AllowSomePages property must be set to true. To enable the user to specify the selected pages to print, the PrintDialog.AllowSelection property must be set to true.
Upvotes: 3