How to find Company Logo (X++)

In this blog i will tell you how to take company logo with X++ code. Below code returns Company logo as image file.

Write this code in a new method in your white paper report and just drag and drop it to create the related object as a bitmap object.

display Bitmap companyLogo()
{
    CompanyInfo     companyInfo;
    companyInfo = companyInfo::find();
    return CompanyImage::findByRecord(companyInfo).image;
}


Comments

Popular posts from this blog

How to do barcode in SSRS (X++)

How to find MainAccount with LedgerDimension (X++)