Greetings!
When Printing in landscape format from the print button in the ViewReport Control (WinForms) the control is missing sending PaperSettings to the printer. Hence we get an ugly dialog telling us "Current printer paper size is different.. bla bla bla". Choose Yes, No, Cancel. Clicking "No" changes the printing layout to landscape. Here's the trick, the control should first set the printing queues orientation to the report default, then check. But it doesn't.
This has been discussed in this thread:http://www.infragistihttps://es.infragistics.com/community/forums/f/retired-products-and-controls/69016/override-paper-orientation#349391cs.com/community/forums/p/69016/349391.aspx#349391
Clearly this is a bug in the control since doing it in code yields the correct result (see code below). If we can do it by code, so can the ViewReport control.
LocalPrintServer localPrintServer = new LocalPrintServer(); PrintQueue defaultPrintQueue = localPrintServer.DefaultPrintQueue; string printerName = defaultPrintQueue.Name; UltraWinReportViewer.PageSettings currentPageSettings = vrReport.GetCurrentPageSettings(); UltraWinReportViewer.PaperSettings paperSettings = new UltraWinReportViewer.PaperSettings(currentPageSettings.PaperSize, currentPageSettings.PageOrientation); vrReport.Print(paperSettings, printerName, UltraWinReportViewer.PageRange.All, false);
The solution is NOT to have my own print button and do this. I am using the toolbar control in the ReportViewer and cannot have my on button the form.
I had hopes the PrintStarted event would have information on the selected PrintQueue an perhapas a Cancel event argument so that we could handle it by ourselves, but no.
So, when do you plan to fix this?
/Peter
Hello,
This issue along with several others were officially released in the latest service release starting with version 14.2.
Please visit the landing page for more details by clicking here
Installing the latest service release for Infragistics helps keep your application up to date. For information on how to get the latest service release, see "How to get the latest service release"https://es.infragistics.com/support/service-releases
For general information about service packs, see our Service Release Schedulehttps://es.infragistics.com/support/service-releases
Let me know if you have any questions regarding this matter.
Hello All,
I received a hotfix that I will be testing this week. I didn't want to hold it from all of you so I decided to make it publicly accessible momentarily. The link expires at the end of next week. Please report here if you have any questions. If this runs smoothly you will see a new service release soon.
https://filetransfer.infragistics.com/public.php?service=files&t=ca39dc6ee4a269029dc2e3db546fc0ac
Sorry, I meant 15.1 installation.
Hi Michael,
Thanks for the update.
How is this fix being released if WPF Reporting is not included in the 15.2 installation?
Jim
I want to first thank you all for your patience. We are currently working on a new Reporting service release planned to be released within the next couple months which will include a fix for this behavior.
If you have any questions regarding this matter feel free to let me know or by contacting support@infragistics.com.