Skip to main content

Notifications

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 ;)

  • 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.

  • Suggested answer
    YUN ZHU Profile Picture
    84,562 Super User 2025 Season 1 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?

    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
    MahGah Profile Picture
    15,445 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

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans