Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1635
How to change printer
posted

I'm using UltraPrintPreviewDialog and UltraPrintDocument, but I can not select or change the printer in PrintPreviewDialog.

Is there any way to do that?

Parents
  • 71886
    Verified Answer
    Offline posted

    Hello guidegi,

    A possible approach to achieve this might be by handling the 'Printing' event of the 'UltraPrintPreviewDialog' component, cancelling it and showing Microsoft's 'PrintDialog'.

    Here is an example code:

            private void ultraPrintPreviewDialog1_Printing(object sender, Infragistics.Win.Printing.PrintingEventArgs e)
            {
                e.Cancel = true;
                printDialog1.ShowDialog();
            }
    

    Please feel free to let me know if a question about our toolset comes up on your mind.

     

Reply Children
No Data