Closed ildarnm closed 7 years ago
Fixed it.
@abatar1 Bug in TableProcessor method GetPrototype line where is Enumerable.First When fieldNames list is empty it return error
Could you please write your code where you construct Content to be filled in TemplateProcessor? I don't get this error when I only try to create Content with TableContent with no rows.
using (var document = new TemplateProcessor("Assets/OutputDocument.docx")
.SetRemoveContentControls(true))
{
var content = new Content(new TableContent("TestTable"));
document.FillContent(content);
document.SaveChanges();
}
In template should be token "TestTable".
@abatar1 I figured out. It is happens only if use Repeat Section Content Control in Word
callstack: