Subreports with mixed page orientation

edited April 2009 in FastReport 4.0
I have a report with the following:

Page1 (poPortrait)
--ReportTitle
--PageFooter
Page2 ((poPortrait)
--PageHeader
--Group
--Master
--Detail
----SubReport1 (poPortrait)
----SubReport2 (poLandscape)
--PageFooter
Page3 (poPortrait)
--ReportSummary
--PageFooter

Depending on a value in the Master band, I set the visible property of SubReport1 and Subreport2. When SubReport2.visible is true, the data prints....but only in poPortrait. I need it to print poLandscape.

In Code...Page2OnBeforePrint I call:
if SubReport1.Visible then
Page2.Orientation := poPortrait
else
Page2.Orientation := poLandscape;

This does not fix the issue. Any thoughts?

Thanks in advance,

Mike Koyne

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:59PM
    page orientation is a property of the designpage once it is set it does not change, it remains for the life of the report(all the pages output by that design page and its objects).
    the only way you can have different page orientation is to create multi designpage reports.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.