How do I change the pagefooter height dynamically?

Posted by: alvarobr on 25 June 2022, 1:57 am EST

  • Posted 25 June 2022, 1:57 am EST

    Hi,

    I'm trying to change the pagefooter height dynamically using the pagestart event but I don't know how to.

    I'm using vb in the script in a report with the extension ".rdlx".

    Anyone can help me on this?

    Greetings from Brazil
  • Replied 26 June 2022, 11:05 pm EST

    Hello Alvaro,

    Unfortunately, the Height is static for page header and footer for RDLX reports. Could you please tell us more about your use case so we see if we can provide you with a workaround for your scenario.

  • Replied 27 June 2022, 5:50 am EST

    The thing is, I have a specific customer that wants a pagefooter with some specific values displayed bigger than the other customers and we work with a single report for all our customers, thus, I would need to specify the pagefooter height through a parameter.
  • Marked as Answer

    Replied 27 June 2022, 4:37 pm EST

    Hi Alvaro,
    As it is not possible to change height of the page header/footer dynamically. What you can do is set the page footer's height before the report is rendered, printed or exported by using the following lines of code:
    bool isValid= Length.TryParse("5cm",out Length height);
    if (isValid)
    report.Report.PageFooter.Height = height;


    If this doesn't resolve your issue, I would suggest you to switch to Section Reports as Section Reports supports event based rendering and you will be able to fulfill your requirement using the page header event.
Need extra support?

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

Learn More

Forum Channels