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...
Answered

How to print image on RDL/DOCX report format with AL

(1) ShareShare
ReportReport
Posted on by 80

I have added a new table that stores a User ID and Image with the intention of being able to 

print the image of the user(s) on certain documents.

On the report object I managed to add the dataset correctly, I assume, as follows:

pastedimage1661354832082v1.png

I then used the table control in my rdl design to display the values, but I get the following on the image field for all entries:

pastedimage1661354936093v2.png

The field data type is BLOB and SubType is Bitmap. How can I make it work with either RDL or WordLayout.

regads,

Lord Rapha

I have the same question (0)
  • Redgren Profile Picture
    80 on at
    RE: How to print image on RDL/DOCX report format with AL

    Thank you all (Amit, Zhu & Corella) for your submissions. The information from all responses helped me achieve what I wanted.

  • Suggested answer
    Steven Renders Profile Picture
    5,658 Moderator on at
    RE: How to print image on RDL/DOCX report format with AL

    This is indeed how to do it, however the Convert.ToBase64String and Convert.FromBase64String are not required. They date back from the time the images were put in a hidden textbox on the body, and so they needed to be converted to text and then back to image. Then from the body they could be referenced on the header/footer.

    If you use images in the body, they don't need to be converted to text. And if you need an image on the report header/footer, simply put it on the first/last line of the dataset and reference it in the image control.

     

  • Suggested answer
    Robyn2018 Profile Picture
    Most Valuable Professional on at
    RE: How to print image on RDL/DOCX report format with AL

    Hi,

    In your case:

    dataitem("SGP Signature";"SGP Signature")

    {

    ...

        column(user_signature:"user signature") {includecaption = true;}

        trigger OnAfterGetRecord()

                    begin
                           "SGP Signature".calcfields("User signature");
                    end;
    }

    Don't forget to help the community by verifying the answer or at least like the suggestion if it did help in any way. It will let others know that the topic has verified answer and was beneficial to you.

    Roberto Corella

    Business Central developer

    blog: https://blog.msdyn365bc.es
    youtube channel: www.youtube.com/.../UCeIS0DjQXp4R-aWY20PSVyg
    Linkedin: www.linkedin.com/.../
    Twitter: https://twitter.com/rccorella
  • Redgren Profile Picture
    80 on at
    RE: How to print image on RDL/DOCX report format with AL

    Hi, thanks for the reply. How can I do this "Calculation" on nested dataitems?

  • Redgren Profile Picture
    80 on at
    RE: How to print image on RDL/DOCX report format with AL

    Hi, thanks for the reply. The challenge is on applying this "Calculation" on nested dataitems. How can I do it.

  • Suggested answer
    YUN ZHU Profile Picture
    92,067 Super User 2025 Season 2 on at
    RE: How to print image on RDL/DOCX report format with AL

    Hi, here's an early example of adding a company seal to a report that I tested.

    https://yzhums.com/1958/

    pastedimage1661389431324v2.png

    pastedimage1661389412309v1.png

    Hope this helps.

    Thanks.
    ZHU

  • Suggested answer
    Robyn2018 Profile Picture
    Most Valuable Professional on at
    RE: How to print image on RDL/DOCX report format with AL

    Hi,

    Remember you must calculate the blobs in the AL file:

    pastedimage1661373057476v1.png

    After this, in the rdlc you can the image control and select, database as image source:

    pastedimage1661373232001v2.png

    In the field expression:

    pastedimage1661373282705v3.png

    I hope this help you.  

    Don't forget to help the community by verifying the answer or at least like the suggestion if it did help in any way. It will let others know that the topic has verified answer and was beneficial to you.

    Roberto Corella

    Business Central developer

    blog: https://blog.msdyn365bc.es

    youtube channel: www.youtube.com/.../UCeIS0DjQXp4R-aWY20PSVyg

  • Suggested answer
    Amit Baru Profile Picture
    3,035 on at
    RE: How to print image on RDL/DOCX report format with AL

    Hi,

    Pls refer link for the above query.

    erpconsultors.com/.../

    Regards

    Amit Sharma

    www.linkedin.com/.../

    Pls press Yes if information is useful.

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
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,864

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,185

#3
Sumit Singh Profile Picture

Sumit Singh 2,850

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans