[EMAIL PROTECTED] wrote:

> Hi there,
> 
> I have a master document.
> I wanted to have links to subdocuments updated when opening the 
> document, without having to answer a dialog box.
> I managed to configure my openoffice "options" to do that and it works.
> 
> Now, I have a macro that opens a document thanks to "LoadComponentFromURL".
> When I run this macro, the document is opened but links are not updated.
> 
> Is there anything else to do after document opening ?
> 
> (It is a problem since I run this macro to generate a PDF of my master 
> document, and so I get an empty document).
> 
> Thanks in advance

Usually macros shouldn't open any dialogs as they are thought to be
means for automation. For this reason you must tell the macro how
exactly it should open the document wrt. link updating otherwise it will
not update anything. Please add a property called "UpdateDocMode" to the
arguments you pass in the "loadComponentFromURL" call. It can have the
following values:

com.sun.star.document.NO_UPDATE
com.sun.star.document.SILENT_UPDATE
com.sun.star.document.ACCORDING_TO_CONFIG
com.sun.star.document.FULL_UPDATE

In your case one of the two last values should be fine.

Ciao,
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]

Reply via email to