Skip to main content

Notifications

Announcements

No record found.

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

How to display an embedded image background in a RDLC report?

(0) ShareShare
ReportReport
Posted on by 73

I need to display a "Draft" image as a background of my "Sales Order" report if the "No. of Archived Versions" is equal to 0.

I have tried this:

          <BackgroundImage>
            <Source>Embedded</Source>
            <Value>IIF(Fields!No__of_Archived_Versions.Value = 0,Draft,Blank)</Value>
          </BackgroundImage>

or this:

<Value>IIF(Fields!No__of_Archived_Versions.Value = 0,System.Convert.FromBase64String(Draft),System.Convert.FromBase64String(Blank))</Value>

But I always get the error that it is not a valid BackgroundImageValue property. Ideally, I would like to specify a "None" image instead of a "Blank" image.

Note that both images are correctly embedded in the RDLC document and if I specify this, it works:

<Value>Draft</Value>

Any help would be greatly appreciated.

  • Inkey Solutions Profile Picture
    Inkey Solutions 1,707 on at
    RE: How to display an embedded image background in a RDLC report?

    You can use Image Import in Report Builder 

    and From the import action put your image there and set you image as you want.

  • Suggested answer
    LLEV Profile Picture
    LLEV 73 on at
    RE: How to display an embedded image background in a RDLC report?

    I've found the solution:

    <Value>=iif(Fields!No__of_Archived_Versions.Value&gt;0,nothing,"Draft")</Value>

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans