Hi,
I'm testing Aspose.Words 9.1.0 and have some problems with MailMerge and fields evaluation.
code :
Document doc_out = new Document(@"PATH/Template.doc");
DataSet ds = new DataSet();
ds.ReadXml(@"PATH\dataset.xml");
doc_out.MailMerge.Execute(ds.Tables[0]);
doc_out.UpdateFields();
doc_out.MailMerge.DeleteFields();
1- MailMerge.Execute() and TableStart/End in template
This is an ascendant compatibility issue. Some customers have created templates using TableStart/End. It don't works with Aspose.Words 9.1.0 (I'm using MailMerge.execute() method). Is there a property to allow Mergefields in TableStart/tableEnd using execute() method (I don't want to use ExecuteWithRegion() in this case, to repeat all my template for each Datarow)? I attached template and dataset to reproduce the problem (Zip/ExecuteInRegion).
2- IndexOutOfRangeException on MailMerge.execute()
I attached template and dataset to reproduce the problem (Zip/IndexOutOfRange).
3- Error! Unknown op code for conditional
I attached template and dataset to reproduce the problem (Zip/UnknownOpCode).
4- Nested IF without quote, and value starting with paragraph break
I attached template and dataset to reproduce the problem (Zip/NestedIfParagraphBreak).
ex : { IF "A"="A" "text 1" { IF "B"="C" "text 2" "text3" }}. It works fine, but if text 3 is starting with paragraph break, text is not visible.
5- Mergefield not deleted when no data found
When I use MailMerge.execute, Mergefields are replaced by there value. If the datarow don't contains this data, Mergefield is not replace by an empty string. Is there a property to do that without using DeleteFields() after MailMerge.execute() ?
Thanks