Hi,
I'd like to give users opportunity to print igr files with preview or without it. Is there any way to print igr file without print preview ?
regards
I'm trying to do this below method but I've got problem. When I print it on CutePDF writer everything is OK but when I try to use any other printer ultra report viewer shows it's printer dialog - I don't know why.
Infragistics.Win.UltraWinReportViewer.PageSettings pageSettings = ultraReportViewer1.GetCurrentPageSettings();
Infragistics.Win.UltraWinReportViewer.PaperSettings paperSettings = new Infragistics.Win.UltraWinReportViewer.PaperSettings
(pageSettings.PaperSize, pageSettings.PageOrientation);
MessageBox.Show(paperSettings.PaperSize.Height.ToString());
ultraReportViewer1.Print(paperSettings, printerName, Infragistics.Win.UltraWinReportViewer.PageRange.All);
The current behavior of the print method implies that if it founds any conflict with the print ticket it will open the dialog so the user can confirm the settings. Since this behavior is not want you always want we will add the option to allow you say that you want those conflicts to be automatically resolved by the driver without displaying the dialog. This option will be available for 12.2.
There is not a good workaround for this issue right now. You may want to try to analyze what is causing the conflict. Another alternative would be to export the report to PDF and print it from there.
Best,
Leo