Am 15.05.2007 16:13 schrieb Mathias Röllig:
> It is a writer document with a database form on it.
> The database form is connected to a database. So it is possible that the
> makro not need to wait for the document but that the database connection
> is established(?).

With the knowledge that the macro must wait for the form load i could
solve the first problem:

Do Until oForm.isLoaded
 Wait( 100 )
Loop


>>> (2) How can i test that the form is fully loaded?
>> No idea, sorry. What does that mean?
>
> Sorry, i forgot the command oForm.moveToInsertRow(). :-(
> It seems so, that the database form makes a refresh after that command.
> But it seems also that it is fullfilled after oControl.setString(
> "myString" ), so that the string is always deleted again.

This is always awaiting a solution.


But now i have a third problem:

oDoc = StarDesktop.loadComponentFromURL( ...
MsgBox( "myText" )

... the Messagebox is behind oDoc ... :-(

I've tried
 StarDesktop.setActiveFrame( oDoc.getCurentController.getFrame() )
before the above lines, but it has no effect. ?-|


greetings
        Mathias t. o. ;-)
-- 
·-· cut here ·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·->8·-·

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

Reply via email to