If you design a landscape report and attempt to print it on a printer where the paper is set to portrait, then you get the following message displayed;
Current printer paper size is different than the report's paper size. Do you want to scale the content to fit?
It does make some sens that this message is displayed but it does confuse users who's response is always going to be 'well, I don't have this problem with Word...'.
Is there some way we can override this message appearing and just automatically select the option to override the printer paper size?
If this is not currently possible could I please request that it be included in a future release?
Many thanks.
I am also having this issue. Is there any way to override the printer page layout? If the report is landscape then it should print landscape without the user being warned about page sizes.
Hi Obi Wan,
No, I have not found a solution to this. Infragistics answer is that it is the OS so there is nothing they can do about it. Other applications that print landscape don't seem to have the problem so it is a bit disappointing.
The suggestion was to intercept the printer request when it goes into the print queue and unify it's settings in there. I haven't got the faintest idea how to do that and it sounds complex and problematic.
The only solution I have found is to train the users to click No. It is not a nice answer and it is pretty embarrassing but it appears to be the only way.
Perhaps these are not the reporting components that you are looking for........
Thanks for the quick response timsmithCPL. I quite agree that getting users to click 'No' just to print report in the layout it is presented on screen is far from ideal. I am unsure how one would intercept the printer request. Perhaps someone from infragistics could advise whether a solution has been found for this? It seems a fairly straightforward requirement.
Hi Guys,
Maybe the easiest way to solve this task, could be if you are using Print() method of your ReportViewer. If you take a look on the last Boolean parameter, you could display or hide the conflict message. For example you could use the code below:
private void ultraButton1_Click(object sender, EventArgs e)
{
Infragistics.Win.UltraWinReportViewer.PageSettings currentPageSettings = ultraReportViewer1.GetCurrentPageSettings();
Infragistics.Win.UltraWinReportViewer.PaperSettings paperSettings = new Infragistics.Win.UltraWinReportViewer.PaperSettings(currentPageSettings.PaperSize, currentPageSettings.PageOrientation);
ultraReportViewer1.Print(paperSettings, "My PrimoPDF printer", Infragistics.Win.UltraWinReportViewer.PageRange.All, false);
}
More details you could find in our online documentation:
http://help.infragistics.com/Help/Doc/Reporting/2013.2/CLR4.0/html/How_to_Print_a_Report_Programmatically_using_Windows_Forms.html
http://help.infragistics.com/Help/Doc/Reporting/2013.2/CLR4.0/html/How_to_Print_a_Report_Programmatically_using_WPF.html
Let me know if you have any further questions.
Regards
Hi Georgi,
Thanks for the suggestion. It is great to know that something happens to the things that get reported here.
I think your suggestions is only valid for the Windows Forms Viewer. I am using the WPF viewer in a WPF application and the print button is part of that which appears to be out of the control of the WPF application.
Can you confirm that I am correct and if you know of any way of solving this problem with the WPF viewer?
Many thanks,
Tim.
Hi,
I am having this same problem. reports are configured Letter size, Landscape. submission based on binding.
<ig:XamReportViewer x:Name="ReportViewerUC" Background="#FFC8C8C8" ExportCompleted="ReportViewerUC_ExportCompleted" >
<ig:XamReportViewer.RenderSettings>
<ig:ClientRenderSettings x:Name="ClientSetting1" DefinitionUri="{Binding DefinitionUrlString} " />
</ig:XamReportViewer.RenderSettings>
</ig:XamReportViewer>
Should there be something put in place to dictate an expected landscape print orientation. Seems like the orientation is ignored.
Hi
In my mind this is a bug and not a new idea. If the report is set as landscape, then I expect it to print in landscape.
Having my own print button is a workaround and not a good one if I'm using Silverlight. How do I access the page settings of the printer from Silverlight?
Kr
Robin
Hello Robin,
Currently the suggestion Georgi shared, using external button, seems to be the best one for achieving the functionality you want. If you want this to be built in you can suggest it as new product idea here:
http://ideas.infragistics.com.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
What would be a solution when using Silverlight?
Is this something that will be rectified in the 14.1 release?
I had a user contact me today about this and I came across this thread in my research.
I can't see that telling every user to select No is a valid solution. Or even having my own Print button as I have over 20 reports and only one is landscape.