Skip to main content
Post a question

Notifications

Community site session details

Community site session details

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

Add 'Media' Datatype to Report w/ ReportExtension and RDLC Format

Like (0) ShareShare
ReportReport
Posted on 12 Jan 2023 20:06:44 by 30

Hello all, 

I am trying to add a column to a default report with a report extension. The column's source field type is datatype 'Media'. 

This report is being displayed with a RDLC layout, and I am using an image report display with the expression of the field in it. 

Does this field have to be called with a function, or should I be able to simply display the field through the 'Image' box in RDLC?

Thanks, 

Chris

  • Suggested answer
    Steven Renders Profile Picture
    5,487 Moderator on 13 Jan 2023 at 08:36:40
    RE: Add 'Media' Datatype to Report w/ ReportExtension and RDLC Format

    Yes you can. However be carefull, because adding it as a column to the dataset might make it repeat on every line of the dataset. This drastically slows down the performance of the report.

    If you need an image only once, like for example the company logo, then it should only be available in 1 record of the dataset.

    Using a report extension, imho, is then the wrong solution, or make sure you clear the image after the first line has been processed, like in report 1306.

  • Suggested answer
    YUN ZHU Profile Picture
    80,256 Super User 2025 Season 1 on 13 Jan 2023 at 00:44:31
    RE: Add 'Media' Datatype to Report w/ ReportExtension and RDLC Format

    Hi, You can refer to the Picture field in Company Infomation. But it uses the Blob type.

    pastedimage1673570618374v1.png

    Here is a simple example:

    https://yzhums.com/1958/

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,005 Moderator on 12 Jan 2023 at 21:26:07
    RE: Add 'Media' Datatype to Report w/ ReportExtension and RDLC Format

    Have you remembered to run calcfields on the blob filed where the media in stored?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,442 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,575 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete