Skip to main content

Notifications

Community site session details

Community site session details

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

Display MediaSet data type (html) to RDLC with report extension

(0) ShareShare
ReportReport
Posted on by 30

Hi,

I need to add terms and conditions at the end of reports.

- I created a new table with Mediaset field.

- I created a page to load the html files (terms and conditions) into the table.

- In my Report Extension, I added Mediaset field.

Display the field "Description" from my custom table works well, but I am not able to display my html in the RDLC.

When I print in Excel Data only format, I get "Binary data (111 bytes)".

Please, how to display the mediaset field (html) in the RDLC?

 

Thanks in advance for your kind reply,

RDLC:

=Fields!cgvImage.Value

Report Extension:

            column(cgvDescription; Media_Table.Description) { }
            column(cgvImage; Media_Table.Image) { }

    trigger OnPreReport()
    begin
        Message('Hello ! OnPreReport seb');
        CompanyInformation.get;
        Media_Table.get('CGV_TITLE');
    end;

Table:

table 50100 MediaTable
{
    Caption = 'MediaTable';
    DataClassification = ToBeClassified;

    fields
    {
        field(1; Code; Code[10])
        {
            Caption = 'Code';
            DataClassification = ToBeClassified;
        }
        field(2; Image; MediaSet)
        {
            Caption = 'Image';
            DataClassification = ToBeClassified;
        }
        field(3; Description; Text[100])
        {
            Caption = 'Description';
            DataClassification = ToBeClassified;
        }
    }

  • Suggested answer
    SebSeb Profile Picture
    30 on at
    RE: Display MediaSet data type (html) to RDLC with report extension

    Hi Amit,

    Thank you for your answer,

    But I don't understand how to do it,

    Your link uses blob, but I use Mediaset and I use Business Central cloud version.

    Please, can you explain me more about it?

  • Suggested answer
    Amit_Sharma Profile Picture
    2,545 on at
    RE: Display MediaSet data type (html) to RDLC with report extension

    Hi,

    Refer the below link

    https://github.com/hougaard/Youtube-Video-Sources/tree/master/Base64

    Regards

    Amit Sharma

    www.erpconsultors.com

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... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,996 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans