We can test using the sample example:
// Create the data to save.
*final *Object[][] data = *new *Object[6][2];
data[0] = *new *Object[] { "January", 1 };
data[1] = *new *Object[] { "February", 3 };
data[2] = *new *Object[] { "March", 8 };
data[3] = *new *Object[] { "April", 10 };
data[4] = *new *Object[] { "May", 15 };
data[5] = *new *Object[] { "June", 18 };
String[] columns = *new *String[] { "Month", "Temp" };
TableModel model = *new *DefaultTableModel(data, columns);
// Save the data to an ODS file and open it.
*final *File file = *new *File("temperature.ods");
SpreadSheet.createEmpty(model).saveAs(file);
OOUtils.open(file);
If a type one data number like a string e.g:
data[0] = *new *Object[] { "January", *"1"* };
and open the generated file in Libreoffice I got leading quotes in my
number.
January *'1*
Is like the following behaviour:
http://superuser.com/questions/394092/how-to-remove-a-plain-text-protecting-single-quote-from-all-the-selected-cells-i
--
---
You received this message because you are subscribed to the Google Groups
"jOpenDocument" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.