I need to transfer the employee`s image to an automatic generated word document.
It is possible to transfer Text to COM word object with
[bookmark, bookmarkValue] = ['EmplTable_FullName', LtabDirParty.Name];
if (this.gotoBookmark(bookmark))
this.insertValue(bookmarkValue, 0);
whereby
Textmarker within Word = EmplTable_FullName
Method gotoBookmark()
COMrange = COMdocument.goTo(#wdGotoBoomark,COMArgument::NoValue,COMArgument::NoValue,bookmark);
Method inertValue()
COMrange.insertAfter(value);
Does anybody know how to transfer the Empl-Image (as an image) from AX to word?
binData.setData( CompanyImage::find(LtabEmpl.dataareaId, LtabEmpl.TableId, LtabEmpl.RecId).Image;
binData.base64Encode() transfers a binary string which will be displayed as a binary text.
But how can I display the image as real Image?
The idea was the right one. In my case I wanted to move the image to word without having the image stored to the filesystem. Herefore I had to use following functions
Image.clipboardCopy();
COMrange.paste();
It is possible to transfer Text to COM word object with
[bookmark, bookmarkValue] = ['EmplTable_FullName', LtabDirParty.Name];
if (this.gotoBookmark(bookmark))
this.insertValue(bookmarkValue, 0);
whereby
Textmarker within Word = EmplTable_FullName
Method gotoBookmark()
COMrange = COMdocument.goTo(#wdGotoBoomark,COMArgument::NoValue,COMArgument::NoValue,bookmark);
Method inertValue()
COMrange.insertAfter(value);
Does anybody know how to transfer the Empl-Image (as an image) from AX to word?
binData.setData( CompanyImage::find(LtabEmpl.dataareaId, LtabEmpl.TableId, LtabEmpl.RecId).Image;
binData.base64Encode() transfers a binary string which will be displayed as a binary text.
But how can I display the image as real Image?
The idea was the right one. In my case I wanted to move the image to word without having the image stored to the filesystem. Herefore I had to use following functions
Image.clipboardCopy();
COMrange.paste();