web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

How to include different background images on different pages in the layout?

(0) ShareShare
ReportReport
Posted on by

Hello,

I would like to do the following:

I have a report that has a background image stored in the layout.

If I then start the report with Run from the development environment, then the image is also printed in the background.

Now the report does not always have only one page, but often consists of 3 pages.

Now the background image on the first page should be different than on the following pages.

Is there a possibility to store different background images for different pages?

So that on page 1 I always have the image "Image page 1" as background and from page 2 I always have the image "Image from page 2"?

Thank you very much ;)

I have the same question (0)
  • Suggested answer
    MahGah Profile Picture
    15,529 on at
    RE: How to include different background images on different pages in the layout?

    Hi

    See this article but I am sure yzhums  can provide more info.

    stackoverflow.com/.../control-report-background-image-conditionally-with-multiple-reports-issue-rdlc

  • Community Member Profile Picture
    on at
    RE: How to include different background images on different pages in the layout?

    Ok, but no one has verified this answer...

    I found this post:

    social.msdn.microsoft.com/.../conditional-background-image

    But this is also not working.

  • Suggested answer
    YUN ZHU Profile Picture
    92,854 Super User 2025 Season 2 on at
    RE: How to include different background images on different pages in the layout?

    Hi, You can do this with the IIf function. Conditions can be defined according to your needs.

    The following is a simple example with Background color. (Sorry I didn't find a report with Background image.)

    =IIf(Globals.PageNumber>1,"Tomato","Olive")

    pastedimage1645669383118v1.png

    Layout:

    pastedimage1645669544057v2.png

    Hope this will help.

    Thanks.

    ZHU

  • Community Member Profile Picture
    on at
    RE: How to include different background images on different pages in the layout?

    This looks very good, unfortunately my report has neither a header nor a footer. It only consists of a body and I believe that the PageNumber function only works in the header and footer.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,275

#2
Sumit Singh Profile Picture

Sumit Singh 2,677

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,526

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans