Upload an image in a form of window control
Hi Guys,Here is the code for Upload an image in a form of window control in your Axapta world.
Go n Get It......
str filename;
FileNameFilter filter = ['JPG files','*.jpg'];
Bindata binData;
Image signatureImage = new Image();
super();
filename = Winapi::getOpenFileName(element.hWnd(), filter, '', "Upload your image", '', '');
binData = new BinData();
if (binData.loadFile(filename))
{
signatureImage = binData.getData();
FormWindowCOntrol.image(signatureImage);
FormWindowCOntrol.widthValue(signatureImage.width());
FormWindowCOntrol.heightValue(signatureImage.height());
element.resetSize();
element.unLock();
}
-Harry
Where we need to do tis code??
ReplyDelete