Skip to main content

Notifications

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

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

Posted on 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
    Steven Renders 5,051 Super User 2024 Season 1 on at
    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
    YUN ZHU 73,110 Super User 2024 Season 2 on at
    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
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,963 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans