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

Announcements

News and Announcements icon
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 485

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

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    159 on at

    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;

  • jdrco Profile Picture
    485 on at

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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,081 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,351 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,168 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans