How to Load image using axapta x++ code,new image, recid, set company image, table id

void loadImage()
{
Image img;
CompanyImage companyImage;
;
companyImage = CompanyImage::find(InventTable.dataAreaId,InventTable.TableId,InventTable.RecId);
if (companyImage.Image)
{
img = new Image();
img.setData(companyImage.Image);
ItemImage.image(img);
}
else
{
ItemImage.image(null);
}
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.