Sorry, maybe I didn't explain properly...

I load a document, and when a load another one the first one disappears
and it's not under the Window menu label. I'd like to be able to load
different documents and make them accessible through that label.

Joan

-----Mensaje original-----
De: Stephan Wunderlich [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 01 de diciembre de 2006 14:27
Para: [email protected]
Asunto: Re: [api-dev] Open document in same window (OOBean)

Hi Joan,

> I'm trying to load several documents in the same window, and I found
> this piece of example that works with the XComponentLoader
>
> ... loadComponentFromURL(url1,"Mydoc", 1, loadProps);
> ... loadComponentFromURL(url2,"Mydoc", 2, loadProps);
>
> This should work with a new window, but I'm trying to load them 
> into an
> applet. The OOBean just gives me this method to do it (no title, no 
> id)
>
> ... loadFromURL( url1, loadProps );
>
> Can anybody help me to find the way to load various docs into an 
> applet?

I suppose you want to load several documents into one document.
For this you could open an empty writer document by using

        loadFromURL("private:factory/swriter", loadProps)

and then use the interface XDocumentInsertable, which you can query 
at this document to insert several document into your single text 
document.

Hope that helps

Regards

Stephan

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


This e-mail may contain confidential or privileged information. Any unauthorised
copying, use or distribution of this information is strictly prohibited.

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

Reply via email to