How to show the Images(*jpg) from the local directory to AX 2009 Form by Using X++ ?

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

}

http://theaxapta.blogspot.in/2013/03/upload-image-in-form-window-control.html

Regards,

Saurabh

http://www.msdynamicsax.info/2010/04/store-image-in-table-for-record-in-ax.html#sthash.mpYlCr0V.dpuf

http://www.msdynamicsax.info/2010/04/store-image-in-table-for-record-in-ax.html#sthash.mpYlCr0V.dpuf

Regards,