We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Is Table Start and End fields are valid in the .dotx file

Hi Aspose,

I am using Aspose.Words to generate reports from the defined .dotx file.
In the .dotx file , I am using the nested tables for example :
TableStart:Content1
TableStart:Content2
TableEnd:Content2
TableEnd:Content1.

I want to write the function to validate the .dotx file in .net if .dotx file does not have proper Table tags.
For example :

TableStart:Content1
TableStart:Content2
TableEnd:Content2

or

TableStart:Content2
TableStart:Content2
TableEnd:Content1
TableEnd:Content1




Hi Jai,

Thanks for your inquiry. Please use MailMerge.GetRegionsHierarchy method to get a full hierarchy of regions (with fields) available in the document. If regions are incorrectly formatted, you will get an exception.

Moreover, you can use MailMerge.GetFieldNames method to get a collection of mail merge field names available in the document. Once you have all filed name, you can check either a region is missing or not.

Hope this answers your query. Please let us know if you have any more queries.