Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
odfdom-0.8.5
-
None
-
Operating System: Windows
Platform: PC
-
191
Description
When I write the a sample code. I create a new OdfSpreadsheetDocument and then set table name "Sheet1". The code as follow:
OdfSpreadsheetDocument doc = OdfSpreadsheetDocument.newSpreadsheetDocument();
OdfTable table = OdfTable.newTable(doc);
table.setTableName("Sheet1");
Symphony can't open this file and Open Office will rename the table. In its content.xml there are two tables named "Sheet1".
Odftoolkit api should automatically check whether the table name is unique in the documnet scope when method public void setTableName(String tableName) is called.