Hi,

I am having trouble trying to wrap UNO function call in BASIC macro.

I got the macro from the following SimpleCalcAddin example.
http://wiki.openoffice.org/wiki/SimpleCalcAddIn#Building_.26_Testing

1.      mgr = getProcessServiceManager()
2.      o = mgr.createInstance("org.openoffice.sheet.addin.CalcAddinSock")
3.      o.startThr()
 (where my idl service returned by getServiceName() is 
org.openoffice.sheet.addin.CalcAddinSock
        and it defines a function startThr)

I can call the funciton startThr() using "=" in the spread sheet.
Also, the original example RNG is callable from macro by following the example.
One difference from the example is that I am using extension.

Please advise how to call UNO functions from BASIC macro.
I intend to call it on a button click. It seems like invoking macro on button 
click is simple (Form control to add button and assign macro using the event 
tab).

Thanks
Neeraj

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to