elements are required before every ”
I have created a Word template that I am then processing via the OpenXML SDK to replace some of the content of the document with data from a database query.
The temp
Sorted. The original error message could not really have been any clearer!
The last child of a table cell must be a paragraph. Simply adding an empty paragraph after the embedded table resolved the problem...
advisoryTable.Append(new TableRow(new TableCell(itemTable, new Paragraph())));
I eventually discovered this by creating a document in Word-2010 that consisted of a table within a table and then looking at the resulting XML in the same Open XML SDK 2.0 Productivity Tool for Microsoft Office tool used above.