i use the mail merge function :
DocWordFile.MailMerge.Execute(NomdeChamp, DonneeDoc)
with NomdeChamp and DonneeDoc as string().
the result of this function is OK (all fields are completed), but after this function when i open the result document ,
there is an word alerte on the original datasource word mailmerge (before a i use spire.doc)
the document result keep the datasource link the original word mail merge
how can i generate with MailMerge.Execute a file without this alert ? or delete this link ?
i find a solution on word 2016 macro:
- Code: Select all
ActiveDocument.MailMerge.MainDocumentType = wdNotAMergeDocument
ActiveDocument.Save
i didnt find how to do that with spire.doc
thank's
FH
ps version spire.doc 7.5.9.4046