We use Aspose to perform a mail merge operation on Word .dot templates. We have tags defined as MergeFields in the document.
Some templates are longer than others, up to around 5 or 6 pages. For one template we use in particular Aspose.Words.Document appears to stop reading the document part of the way through. At around 4 pages it stops reading the tags and returns the array- without throwing an exception.
If I move tags from the bottom to the top of the document it reads them, and then cuts out tags further down the document.
Using the following code:
List<string> tags = null; Document doc = new Document(fileName); tags = doc.MailMerge.GetFieldNames().ToList();
Is there something I am missing? It seems strange that the process would just cut out mid way through and not throw any kind of exception.