Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Conditional Image in Report

(0) ShareShare
ReportReport
Posted on by 479

Is there a way to either show or hide and image on a report depending on the value of another field? I am editing the report as a .docx not .rdlc, so I am looking for a solution using AL and Word.

Thanks,
J

  • jdrco Profile Picture
    479 on at
    RE: Conditional Image in Report

    Can you elaborate a little more? I am doing this on a report extension and OnInitReport() is not a valid trigger I'm finding.

  • Suggested answer
    JAngle Profile Picture
    95 on at
    RE: Conditional Image in Report

    Would mean having an If statement in AL to skip the calculation of the blob or media set field. There is no way to do this in word.

    Example being on the header of sales documents the picture from the company information table is calculated:

    trigger OnInitReport()

       begin

           CompanyInformation.Get;

           CompanyInformation.CalcFields(Picture);

       end;

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June 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 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans