I have a simple Word template with two tablestart/end sets (not nested) for two different tables that are included in a dataset along with a few other tables. I am doing a MailMerge.ExecuteWithRegions and sending the full dataset through, but I get a NullReference exception. If I take out one of the tablestart/end's and try it again it runs fine and fills the template as expected. I'm sure that I'm just doing something stupid here, but there error message is coming out of Aspose and it is not giving me any additional detail to figure out the problem so I am lost.
Is there someone that I can send the dataset and template to, to have a look? My code follows:
Document doc = new Document(templateTextBox.Text);
DataSet dataSet = new DataSet();