John Sisson wrote: > Hello, > Documentation for oo development implies that soffice macros invoked > from a (connected) client by the client-side method: > myXDispatch.dispatch(myMacroUrl, myPropertyValueArray) > can receive method parameters, but it does not state how this is done. > Given a method 'MyLib.MyModule.Foo' it seems there are 2 options: > Option.1 > Sub Foo > Dim oParam as Object > oParam = [some oo method for getting XDispatch PropertyValues] > > ... operations > End Sub > > Option.2 > Sub Foo(oParam as Object) > ... operations > End Sub
Option 2 is correct. Parameters are passed as strings. I can't answer your second question (forcing a lib to be loaded when macro called via XDispatch) safely, so I better wait for somebody else. Best regards, 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]