Good afternoon!
Having some trouble with the following.
I have a word document for a table that I need to duplicate based on how many items are in a payload.
I open up the document and put it into a WordDocument variable (currentDoc) for use. For simplicitys sake - I have the following code:
JObject formattedResponse = new JObject();
formattedResponse["payload"] = formattedPayload;
currentDoc.MailMerge.ExecuteGroup(GetDataTable(formattedResponse.ToString()));
formattedPayload looks like the following:
{{
"payload": [
{
"%%IFSJTempLimit": "11",
"%%IFSJSingleLimit": "9",
"%%IFSJTransitLimit": "12",
"%%IFSJDed2": "",
"%%IFSJDed3": "",
"%%IFSJDed6": "",
"%%IFSJEarthLimit": "13",
"%%IFSJEarthDed": "14",
"%%IFSJFloodLimit": "15",
"%%IFSJFloodDed": "16",
"IFSJName": "1236 See Lane FL, FL 32548 "
}
]
}}
Now, if I use the full word document (Sample - Good.docx) this works fine. However, if I delete everything but the table (Sample - Bad.docx), the mailmerge does not work. I have included the json as a file that simulates the payload.
Is there something here I might be missing you could assist me with?
Attachment: MailMerge_Syncfusion_Question_b0fa0f7f.zip