Le 10/04/2013 12:00, Ruben Cabral a écrit :
hi there,
I try read and modify an existing spreadsheet, and save it but i need the
ods file stay all the time open, is realy necessary, and my code is like
this for example.

File file = *new *File("template/invoice.ods");
*final *Sheet sheet = SpreadSheet.createFromFile(file).getSheet(0);

sheet.getCellAt("I10").setValue(*"hello"*);

sheet.getSpreadSheet().saveAs(File);

But with this code give me a error maybe because the file is already open.
It's possivel with jopendocument api make this?

Hi,

No, it's the OS that's refusing to write to an open file, nothing Java can do about it. The only way would be to connect the running instance of Office using UNO and tell it to change the value.

Cheers,
Sylvain



--

--- 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 jopendocument+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to