Skip to main content

Notifications

Announcements

No record found.

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

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

(0) ShareShare
ReportReport
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,048 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 75,561 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 993 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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans