- Where should I put the root foreach to accommodate this structure?
- How do I push data into headers and footers?
I changed the test case, but the problem is the same.
I have attached the following (in a ZIP file):
The Web API endpoint I’m calling is this (with the XML file as the payload):
Thanks for your inquiry and sorry for the delayed response.
1 - After executing mail merge with regions, please execute simple mail merge to be able to push data into headers and footers.
2 - Please follow these simple rules when marking a region in Word document:
3 - We managed to reproduce this issue on our end and are checking this scenario further. We will keep you informed via this thread. We apologize for your inconvenience.
AsposeApp.AppKey = "";
string fileName = "Proposal2-Intermediate.docx";
string outFileName = "final-output.docx";
string xml = "<?xml version='1.0' encoding='UTF-8'?>" +
" " +
" ABC Company, Inc.ABC Company, Inc" +
" 2015-00046" +
string strURI = "http://api.aspose.com/v1.1/words/" + fileName + "/executeTemplate?withRegions=false&filename=" + outFileName;
string signedURI = Utils.Sign(strURI);
Stream responseStream = Utils.ProcessCommand(signedURI, "POST", xml, "XML");
StreamReader reader = new StreamReader(responseStream);
string strJSON = reader.ReadToEnd();
Eric:So, then, the only problem left to solve is why the clean-up options are not actually removing empty tables (as you can see from earlier in the thread).