0

Resolved

The ODF table generation throws an error when a table is created an no columns are defined.

description

Code that gives the error
 
//Create table with no column definitions.
var table = _document.AddTable("Table 3");
//Add two rows
table.AddRow(new List<string>() { "row 1 col 1", "row 1 col 2" });
table.AddRow(new List<string>() { "row 2 col 1", "row 2 col 2"});
 
When generating the ODF document this code creates an error.
Make sure that the number of columns is checked before the table and rows are created.

comments