During the send e-mail process (mail merge), the user sometimes opens the attachment generated by Navision, to verify if it's ok for him.
Unfortunately, if the user closes the Word Application (instead of the current Word Document), the Navision process crashes ! because the Word Instance is closed.
Is it a way, a property in Word, or an idea in your head... to avoid this situation.
TIA,
Louis
0
Comments
I think it is like this: autAutomation.VISIBLE(FALSE);
Then start processing and at the end make it visible again.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
But when the e-mail process shows the attachment I think it's still possible for the user to open the Word Application by clicking the attached Document and if he close the application instead of closing only the document the following message appears :
=> This message is for C/AL Programmers :
= >Could not invoke the member Documents. The OLE control or Automation server returned an unknown error code.
Do you know if it is another approach to resolve this problem ?
Do you know if it is possible to trap an error code in C/AL and reopen Word ?
TIA
Louis
Regards
Can't you teach the user?