chensuchun wrote:

>> No, you can't copy the document content that way.
>> If loadFromStorage() doesn't work you have to update and use the SubFilter.
>> 
>> Perhaps you tell us what loadFromStorage() does. Or you can debug the
>> code to see what goes on there. Maybe it's a bug in the code. But even
>> then you had to update as nobody will fix bugs on this ancient code line.
>> 
> The source code of loadFromStorage in OOB680 :
> 
> When I call it in the filter,
> it goes into "if( m_pData->m_pObjectShell->GetMedium() )" statment and 
> "throw DOUBLEINITIALIZATIONEXCEPTION()".

Ah, I see. This was the reason why we added the SubFilter API. The
document already was initialized as an empty document. So trying to
assign another storage directly can lead to inconsistencies. For that
reason we added the new, explicit API.

So the only way I see is upgrading to at least OOF680 and using SubFilter.

Ciao,
Mathias


-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

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

Reply via email to