Report backcoloring

Posted by: zalktis on 9 February 2023, 11:00 pm EST

    • Post Options:
    • Link

    Posted 9 February 2023, 11:00 pm EST

    I want to paint a full page with some color for the text in the background, full of both printable and non-printable parts (margins).

    Please help, how to code?

  • Posted 12 February 2023, 8:37 pm EST

    Hi Ainars,

    In an RDL Report, you can assign your BackgroundColor to your Report’s Body, PageHeader, and PageFooter.

    In a SectionReport, you can create an image of the color you want as the background of your report and assign this image in the ‘SectionReport.Watermark’ property. And set the ‘WatermarkSizeMode’ to ‘Strech’.

    This will paint the background of your whole report in your expected color however as margins are blank spaces and thus cannot be painted. As a workaround, you can set the margins of your report to 0 and manually leave space in your report/header/footer as per the margins you require.

    Please find attached a sample implementing the same.



Need extra support?

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

Learn More

Forum Channels