Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Not able to get my company logo in Rdlc report

Posted on by 204
I am using this in my rdlc report to render logo present in my company information. Still not able to render it. What could be the cause of it? Am I missing something here?
column(companyName; companyinfo.Name)
            {
 
            }
            column(Description; Description)
            {
            }
   

trigger OnPreReport()
    begin
        companyinfo.Reset();
        companyinfo.get() ;
        companyinfo.CalcFields(Picture);
 
    end;
           
Categories:
  • Suggested answer
    Steven Renders Profile Picture
    Steven Renders 5,045 Super User 2024 Season 1 on at
    Not able to get my company logo in Rdlc report
    This is a much better way to do it:
     
    By using an integer data item you only add 1 row to the dataset. In that data item you can then add all information that you only need in 1 row of the dataset, like company info, and other vars.
     
  • Verified answer
    Ariba Mehdi Profile Picture
    Ariba Mehdi 160 on at
    Not able to get my company logo in Rdlc report
    Hi, follow the steps:

    1. I have written a very simple code here for the RDLC report.
     
      
    2. Go to Report builder and click on Image from the Insert tool. 
    3. Select the image source as "Database" and MIME type.
      
    4. Save the file. Then, import the file to the business central and run the report. 
    5. Result:


    Hope this helps!
     

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans