RDL second page control widths

Posted by: roland.lee on 2 May 2024, 7:24 am EST

    • Post Options:
    • Link

    Posted 2 May 2024, 7:24 am EST

    hello.

    Another question - so there is a 2 column layout in a report, on the 2nd page, we would like to maximize the width of the 2nd column since the 1st column is most likely done in the first page. Is this doable in an RDL?

    Roland

  • Posted 2 May 2024, 9:08 pm EST

    Hi Roland,

    Although there is no direct way to achieve this requirement in an RDL report, however, if you have static data in your table i.e. the height of the contents in your table (on the first page only) does not change on each preview then you can use ReportSections to achieve your requirement.

    For this in the first report sections add two tables one on the left and one on the right, in your second table you can add an expression to the ‘Visibility.Hidden’ property that compares whether the row number is greater than the number of rows for the first page, if yes you can hide the rows else show them.

    For your second report section copy the second table to this section extend its width and change the visibility condition to the exact opposite, i.e. check if the row number is greater than the number of rows for the first page, if yes you can show the rows else hide the rows.

    Please find attached a sample implementing the same.

    You may also try using a SectionReport in which events get called on each section/page render and you can change the control’s width/position as per different event calls at runtime.

    You may learn more about SectionReports here: Section Report. You may also learn about Section Report Events here: Report Events.

    Regards,

    Anand

    TwoColumnReport.zip

  • Posted 3 May 2024, 2:06 am EST

    Hi Anand.

    Thanks for the example. We are leaning towards the event driven Section reports. We usually do it this way but was wondering if there was an RDL report way of doing it.

    Thanks,

    Roland

  • Posted 6 May 2024, 3:21 pm EST

    Hi Roland,

    No issues, glad we were able to assist!

    Regards,

    Anand

Need extra support?

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

Learn More

Forum Channels