In Codeunit 5054 Function Execute Merge is it possible to sometimes add an extra attachment to the sent email as well the merged document. e.g., I might want to sent an extra map.pdf to some lines on a segment.
(The Cal Symbol Menu doesn't show the full list of properties of WordDoc.MilMerge.xxx so I can't see if there is an obvious way to do it.)
WordDocument.MailMerge.Destination := 2;
WordDocument.MailMerge.MailAddressFieldName := Text015;
WordDocument.MailMerge.MailSubject := TempDeliverySorter.Subject;
WordDocument.MailMerge.MailAsAttachment :=
WordDocument.MailMerge.MailAsAttachment OR TempDeliverySorter."Send Word Docs. as Attmt.";
WordHelper.CallMailMergeExecute(WordDocument);
(The Cal Symbol Menu doesn't show the full list of properties of WordDoc.MilMerge.xxx so I can't see if there is an obvious way to do it.)
WordDocument.MailMerge.Destination := 2;
WordDocument.MailMerge.MailAddressFieldName := Text015;
WordDocument.MailMerge.MailSubject := TempDeliverySorter.Subject;
WordDocument.MailMerge.MailAsAttachment :=
WordDocument.MailMerge.MailAsAttachment OR TempDeliverySorter."Send Word Docs. as Attmt.";
WordHelper.CallMailMergeExecute(WordDocument);