I went through the source code again.

Yes I do pass a filter (swriter: Rich Text Format) to the storeToURL, and now I 
also
pass one when reading the file (swriter: writer_MS_Word_2003_XML) and it works.

I still have problems with the wordML filter for which I posted to [EMAIL 
PROTECTED]
When I am finished with this I will try to look at this issue and get the error 
code from
the exception.

-----Original Message-----
From: Mathias Bauer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 2:15 PM
To: [email protected]
Subject: Re: [api-dev] How to debug API usage

Bénigot Yves wrote:

> Finally I found the cause of the problem : when OO does 
> loadComponentFromURL of a WordML (xml) file, if the property 
> FilterName is not set, no error is sent when reading the document, but on 
> saving in RTF , StoreToURL displays "IOException".
>
> I put the property filterName to "swriter: writer_MS_Word_2003_XML" on 
> reading, and the document can then be saved safely.

Strange. Did you pass a filter name in the storeToURL() call?

> Also, the curious thing is that this does not happen every time. 
> 
> Still, I suggest that there should be a way to get the exception error code. 

You can get the error code from the exception (see its IDL definition).
Then you will need the documentation that explains which meaning the codes 
have. Unfortunately we didn't put it online until now. <marks item on ToDo list>

Best regards,
Mathias

--
Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply 
to the list only, [EMAIL PROTECTED] is a spam sink.

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

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

Reply via email to