I have a report that I'm trying to use printpreview to show to the user before actually printing. The report has some pages portrait and some pages landscape. In the final report or in an exported PDF the pages show properly but not during print preview.
In looking at the PrintPage event arguments the pagesettings (e.PageSettings.Landscape) does not change page to page to reflect the orientation set in the report section. Also, I can't find any reference to the actual report section or anything that I could use to figure out how the page should be rendered during preview.
Is there something I'm missing here that would help me. If know that in debug if I manually change the PageSettings between the 2 orientations I get pages displayed as I would expect ... some landscape and some portrait so I know that the preview will render properly if I can just set it somehow.
In order to control the orientation of a page when printing, you must change it in the QueryPageSettings event. As to how you would know whether to set Landscape to true or false, perhaps you could base it on the width vs the height. You may also want to submit a suggestion that the project page exposes the associated isection for the page - http://devcenter.infragistics.com/Protected/RequestFeature.aspx.