Thursday, May 29, 2014

How to display a company logo in MorphX Report

Before going to display a company logo in report, we have to add a logo in company information form.

Basic>Setup>Company Information>company logo button

in report:
To use the image in a report, add a Bitmap control to the report Design.
Add a display method for this added Bitmap control

display Bitmap  companyLogo()
{
    CompanyInfo companyInfo = CompanyInfo::find();
    ;
    return CompanyImage::find(companyInfo.DataAreaId, companyInfo.TableId, companyInfo.RecId).Image;
}
additionally, to make sure that the logo appear correctly, follow these steps
1. for the report you want to display logo, create the companyLogo() method.
2. Add a new Bitmap field in the report, then click comapnyLogo in the Datamethod property.
3. for the Bitmap field control, click Yes in the ResizeBitmap property.

No comments:

Post a Comment

update_recordset with joins

 update_recordset with joins update_recordSet storeTransfer         setting      TransactionId = transfertable.TransferId     join transfert...