Hey,
Is it possible when you use wordmanagement to fill in the TO/CC fields in word?
Like when the user selects open document, he only has to press "Send"?
I don't want to put the document in attachment, so this seems the only solution. only i have to find how to fill in these fields from code in navision
There are no bugs, only random undocumented features...
---
My Blog:
http://NAV-Magno.be 0
Answers
You can send Word documents from segment like you want in Navision. Just figure out how Navision works with Segments and sending word-files as attachment or not.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
already solved the issue.
It is possible to do this, but you have to change the default wordmanagement codeunit.
something like this:
Make a new parameter in the getDocuments function.
like "ShowEnvelope" of type boolean.
Copy this one to a global in this codeunit.
then whenever there is
WrdApp.visible := TRUE;
type below it:
if bolShowEnvelope then
wrdApp.ActiveWindow.EnvelopeVisible(TRUE);
for every codeunit you make to merge, make a new function something like
"AddRecipients"
In the on run you see there is a case with 3 possibilities
in the third you find AddTables, just below it, add you new function.
Example of my AddRecipients:
variables:
Name DataType Subtype msoEnvelope Automation 'Microsoft Office 11.0 Object Library'.MsoEnvelope mlItem Automation 'Microsoft Outlook 11.0 Object Library'.MailItem
As you see it is not this difficult.
Thx anyway for the help
---
My Blog: http://NAV-Magno.be
I' ve added a new field to be pumped in the mail merge document.
But on compiling the code, I get an error :
" You have specified an unknown Variable OpenDataSource2000 Define the variable under Global C/AL symbols"