SSRS Tips: X++ code to get Company Logo in D365 F&O || Ax 2012

Hi Everyone, 

There are multiple ways for presenting Company logo in SSRS reports(i.e. RDP reports). Today I would like to share my way of inserting the company logo into  tempTable.

   // Variable declaration
   CompanyInfo        companyInfo = companyInfo::find();

   // we can use any of the below piece of code to get the current company logo.
    tempTable.CompanyLogo      = CompanyImage::findByRecord(companyInfo).Image;         
                       //or
   tempTable.Companylogo       = FormLetter::CompanyLogo();


Proud To Be a DAX Developer :-)

5 comments:

  1. // You can write the code in one line too...

    tempTable.CompanyLogo = CompanyImage::findByRecord(CompanyInfo::find()).Image;

    ReplyDelete
  2. setting up a limited company It is imperative that we read thread post very carefully. I am already done it and find that this post is really amazing

    ReplyDelete
  3. ハンディターミナルバーコード開発 What a fabulous post this has been. I am grateful to you and expect more number of posts like these. Thank you very much.

    ReplyDelete
  4. I really get pleasure from the kind of matters publish here. Appreciate it with regard to sharing us a terrific facts which is basically very helpful. Excellent day!

    http://mouldexperts.ca/

    ReplyDelete
  5. This blog is very well written and I appreciate your efforts.. Keep up the good work.

    Servizio di miglioramento della casa

    ReplyDelete