OpenOffice rewrite file problem

rixrixrixrix Member Posts: 121
Dear friends,

I am using (trying to use) dbOleWrapper v0.2 (see mibuso downloads) to export data from NAV to XLS.

First I export it into txt file (it is uncomparably faster then direct inserting into oofice sheet)
Then I load it as document into ooDoc (using loadComponentAsUrl fuction)
After that I save it as XLS (using StoreAsUrl function)
And finally I use "Close" function to close ooDoc Object.

Everything works perfect ....

But when I try to rewrite source TXT file, system says: File is already opened, can not ......
I thought after closing ooDoc, will everything be fine, but it is not.

Thank you in advance


SOLVED using different way of saving ...... I used "StoreToURL" function ("StoreAsURL" changes Object to newly saved file, and I do not know how to reference previously opened file - it stays opened)
Sign In or Register to comment.