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?
Take a look at Task Recorder - it is able to generate Word documents with screenshots. Class SysTaskRecorderDocStandardWord and its method insertScreenshot() seems to contain the implementation...
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?
Take a look at Task Recorder - it is able to generate Word documents with screenshots. Class SysTaskRecorderDocStandardWord and its method insertScreenshot() seems to contain the implementation...
Image.clipboardCopy();
COMrange.paste();