web
You’re offline. This is a read only version of the page.
close
Skip to main content
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;
        }
    }

I have the same question (0)
  • Suggested answer
    Amit Profile Picture
    2,557 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

  • 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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,401

#2
Sumit Singh Profile Picture

Sumit Singh 2,692

#3
YUN ZHU Profile Picture

YUN ZHU 1,935 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans