Andrew Jensen wrote:
You simply have to get a reference to the forms script provider.
Dim aArgs(0) As New com.sun.star.beans.PropertyValue
Dim oForm as variant
Dim oScriptProvider as variant
Dim oMethod as variant
oForm = db.forms.looadfromURL( "Form1", .....)
' get form ScriptProvider
oScriptProvider = oForm.ScriptProvider()
oMethod = oScriptProvider.getScript( _
"vnd.sun.star.script:Standard.Module1.Main?language=Basic&location=*document*")
oMethod.invoke(Array(),Array(),Array())
Sorry, little fast on the send button there
That final example was by entered by user Hanya at OOoForum originally
for use with a separate stand alone document, and altered for an
embedded form.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]