The customers of the company that I work for tend to have a large collection of template documents that they use for Mail merging. All of these letters have common components (usually a header and footer) that are the same for all of the documents.
To make these documents manageable master and sub documents are used where the two subdocuments are usually the header and footer while the main body of the template is the master.
My company usually performs Word Automation to expand all sub-documents on the master documents and perform the mail merge process. The usage of the Aspose component will completely ignore all sub documents on the letter template.
Since the customers that use these templates are in the insurance industry the format of these documents can be extremely important so I have had to disable the Aspose integration for several of my company’s customers.
I am not looking for any ability to add sub documents on to documents! However, I do need to mimic the following lines of word automation
If mObjWord.ActiveDocument.Subdocuments.count > 0 Then
mObjWord.ActiveDocument.Subdocuments.Expanded = True
All the above code will do is expand the sub document on the master then delete the sub document. So that will be the two methods that I require:
With out the usage of subdocuments all of the letter templates will have to be modified and this will be an extremely large amount of work and the brokers that use these templates will not be very receptive about this request.