PageReport Preview incorrect paper size

Posted by: mdynna on 30 September 2024, 10:08 pm EST

  • Posted 30 September 2024, 10:08 pm EST - Updated 30 September 2024, 10:13 pm EST

    When creating a custom Page Report I have set all the paper size properties that I can find. In the designer window I can see the proper width of 10 inches, but when Preview is pressed the print layout still shows Portrait width with a second page to print the extra columns.







    Is there some other property (or properties) that I am missing to properly preview the “landscape” report?

  • Posted 1 October 2024, 4:34 am EST

    Hi Mark,

    The report’s Page Size’s Width includes the Body’s width and the Left and Right margins of the page.

    To accommodate the entire table on a single page please make sure your “

    Body.Size.Width
    ” Property is equal to or less than the
    'Report.PageSize.Width - Report.Margins.Left - Report.Margins.Right'
    .

    Please find attached a sample of the implementation of the same.

    However, if the issue persists please try sharing a sample of your report that replicates the issue so we can replicate the same on our end and investigate the issue further.

    Thanks,

    Anand

    LandscapeReport.zip

  • Posted 1 October 2024, 1:52 pm EST

    We’re using Active Reports 17 and there isn’t a “Width” property on the “Body” property. I did find PageReport.Report.Width.

    I have it working now, needed to set Report.Width, Report.PageWidth, Report.PageHeight, as well as all the Report.*Margin properties. Found that if any are “off” by even a little bit the whole thing reverts to “Custom Paper Size” which in reality is “Letter Portrait” size. That behaviour is a little odd but I have Landscape format working now.

  • Posted 2 October 2024, 11:48 pm EST

    Hi Mark,

    Yes, there have been some design changes over the last few ActiveReports versions such as introducing ReportSections which has moved the properties a bit.

    We’re glad to know that your issue has now been resolved!

    Regards,

    Anand

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels