We have what we hope is a simple question, but one we haven't found an answer for yet.
We are using the UltraPrintPreviewDialog control to print preview the contents of an Ultragrid (windows).
Depending upon the contents of the grid there can be anywhere from 1 to 8 pages to print. Generally the user would print the entire page range, but there are times they may only need to print say page 2 through 4.
Is there a way when using the UltraPrintPreviewDialog control to allow the user to pick which pages of the document to print?
The PrintPreviewDialog doesn't really have anything to do with what pages get printed. That's up to the PrintDocument.
So you probably want to show the inbox PrintDialog and allow the user to select the pages to print either before you show the PrintPreviewDialog or in the Printing event of the PrintPreviewDialog, which fires when the user clicks the Print button.
Mike, thanks for the reply. You lost me though whan you mentioned "show the inbox PrintDialog". I'm not sure what you mean by inbox in this context. And are you referring to the PrintDialog control that comes with dotNET or an Infragistic control?
Sorry. "Inbox" means stuff that is included with Visual Studio. I think the term comes from the old days when software like Visual Basic used to come in boxes. ;)
I am referring to System.Windows.Forms.PrintDialog.
This is a component that is part of the DotNet framework and it has options for printing. By default, it's in the Toolbox under the Printing group.
After I sent my previous reply I had a Doh! moment. I followed what you said and I now have it working. Thanks again for your help!
i am having the same problem, could you be more specific on how you resolved this please?
Hello ngflycloud,
Could you please review the sample attached to this post and see if it meets your requirements.
Please feel free to let me know if I misunderstood you or if you have any other questions.