web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Code to Insert Image in Table using axapta x++

SANTOSH KUMAR SINGH Profile Picture SANTOSH KUMAR SINGH 1,224
Image img;
Filename name;
str type;
#File
;
img = new Image();
type = '.'+strlwr(enum2value(img.saveType()));
name = WinAPI::getOpenFileName(element.hWnd(), [WinAPI::fileType(type),#AllFilesName+type], '', '');
if (name)
{
ttsbegin;
img.loadImage(name);
ImageTable.Image = img.getData();
ImageTable.write();
ttscommit;
}

This was originally posted here.

Comments

*This post is locked for comments