Skip to main content

Notifications

Community site session details

Community site session details

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

Error trying to render image in Report

(0) ShareShare
ReportReport
Posted on by 479

I have this embedded image that I have created an expression for when it is hidden or shown. I want it to be hidden if a field in the dataset is == 0. In this case it is the 'RemainingAmount' field. Here is what I have for my .RDLC report:

Screen-Shot-2022_2D00_05_2D00_20-at-1.25.11-PM.pngScreen-Shot-2022_2D00_05_2D00_20-at-1.26.14-PM.png

And whenever I try to run this report I get this error:

Screen-Shot-2022_2D00_05_2D00_20-at-1.29.29-PM.png

How do I fix this bug?

  • Verified answer
    Arjun Anand Profile Picture
    198 on at
    RE: Error trying to render image in Report

    [View:/cfs-file/__key/communityserver-discussions-components-files/758/StandardSalesInvoice-_2D00_-Copy.rdl:320:240][View:/cfs-file/__key/communityserver-discussions-components-files/758/HelloWorld.al:320:240]

  • Suggested answer
    tanya07 Profile Picture
    1,636 on at
    RE: Error trying to render image in Report

    Hi jdrco ,

    You can follow this way too -

    printRA = boolean; // add this in your dataitem fields too

    In onafter trigger ()

    if RemainingAmount > 0 then

    printRA = true;

    else 

    clear(printRA);

    Now in PrintRA Visibilty, write 

    Iif(Fields!printRA.Value,False,True)

     

    Thanks,

    Tanya Kharbanda

    Don't forget to help the community by verifying the answer if your question has been answered. It will let others know that the topic has a verified answer.

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