Hi Mathias
Mathias Röllig schrieb:
(2) How can i test that the form is fully loaded?
No idea, sorry. What does that mean?

Try to create an UNO-Listener, http://api.openoffice.org/docs/common/ref/com/sun/star/form/XLoadListener.html

I tried this, but it doesn't work if i do nothing wrong.

Seems you mean another listener...

But if Mathias is right, that the document is loaded by returning of
load ComponentfromURL() (and i think so ;-) ), then the event
(OnLoadFinished) is fired before i can register a event listener.

If this is the case (I doubt it) why not make a reload?

oForm = oDoc.DrawPage.Forms.getByName( "myForm" )
'register your Listener here
oForm.reload()
while not bHasReloaded
wend
oControl = oForm.getByName( "myControl" )
'***(2)*** waiting for form load
oControl.setString( "myString" )

Peter

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

Reply via email to