Hi, 

I'm facing a problem adding a table from scratch to an existing XLSX file.

                   Table t1 = sh.createTable();
                   t1.setName("myNewTab");
                   .....

If I create a new table the xlsx file generated is not readable from excel
("Excel found unreadable Content in myfile.xlsx"). 

Going in deep I found that the TargetURI of the newly created table seems to
be wrong, in fact is set to  "/tables/table4.xml" instead of
"xl//tables/table4.xml" as all the other tables are in the file. Even inside
the XLSX file's structure this seems to be wrong, all the other tables are
located under "xl/tables" but my new table definition is located under
"/tables".

I'm using "seems to be" because if you open the file with openoffice the
file is readable (no error but the my new table is still missing). So I
don't know if this seems to be a problem strictly related to Excel or not,
but unfortunately Excel is the application i must use so I need your help!
Looking forward to any answer,

Using poi38beta3


--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Create-a-new-Table-into-an-XSSF-sheet-excel-2007-tp4288371p4300189.html
Sent from the POI - User mailing list archive at Nabble.com.

Reply via email to