Message de Fernand Vanrie  date 2007-11-15 11:43 :
Halo,

We have a unsaved Writerdoc "oTemplate" opened from a Template (Untitled) , when saving it to a propper Writter doc we run from time o time into a IO-execption error using the folowing line of basic code

oTemplate.storeToURL( ConvertToURL(sfile), Array( MakePropertyValue("FilterName", "Writer8" ))

(...)

The problem is that the erro disapeared after restarting OO and the error do not happen when first saving the open template (untitled) to a saved Wriiterdoc


You should not need to use storeToURL() on an unsaved document.

storeAsURL() = save the document
storeToURL() = save a separate copy of the document

If you only need a Writer8 version, then use instead storeAsURL() with same arguments.

If your main storage is in another format e.g. in OpenDocument, then storeAsURL() in that format before saving a copy in Writer8 format. If later you want to modify the current document, update your main storage with a simple store()

   Bernard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to