Hi,
We are doing a small POC using Aspose.Word.
We are creating a word document using Aspose.Word by referring the word template file(.dotx file).
In that template file we are using “Mail Merge Filed” and while generating the word document using Aspose.Word, we are assigning values to Mail Merge fields and after successful generation of document we are storing that document file in SharePoint document Library.
We have a scenario that we need some MailMerge fields to be updated later after some database operation and after that hose will be updated in the document.
For Example:
I have following fields in template File:
«TableStart:TestInfo»
«testname»
«TableEnd:TestInfo»
«TableStart:CommentInfo»
«comment»
«TableEnd:CommentInfo»
While creating the document we are updating the TestInfo table with test name.
Also I am clearing the unused regions with the following code:
doc.MailMerge.CleanupOptions = MailMergeCleanupOptions.RemoveUnusedRegions;
After successful geneartion of the document by using Aspose.Word, we are uploading that document to Documnt Library.
However my requirement is after some database operation, I want that “comment” filed need to be updated with the data reading from the database.
However I am facing difficulties here in getting those mail merge fields and also I am confused how to update the same also using Aspose.Word.
Could you please let me know whether we can achieve the same using Aspos.Word or not?
Could you please help me in achieving the same?
Please revert in case of any issue.
Thanks,
Rajesh