Hi Pioneers,
I want to show the Images in AX Form , The images are located in System Drive ( D:/ images/), How to show the particular image in AX From from the Local Directory…
Thanks in Advance…
Hi Pioneers,
I want to show the Images in AX Form , The images are located in System Drive ( D:/ images/), How to show the particular image in AX From from the Local Directory…
Thanks in Advance…
One of possible solutions is to add a Window control to the form and set its ImageName property. An example (assuming that the control is named imageWindow):
imageWindow.imageName(@'C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Share\Include\Checklist_help.png');
The other option is to load the image by using BinData and Image classes
Image image;
BinData binData = new BinData();
#define.fielName(‘D:\images.jpg’)
;
if (WINAPI::fileExists(#fielName))
{
binData.loadFile(#fielName);
image = new Image();
image.setData(binData.getData());
images.image(image);//images is the windows control name
}