[libreoffice-dev] -calling a service function from BASIC macro
Rai, Neeraj
neeraj.rai at citi.com
Thu Feb 7 15:47:35 PST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130207/4714badb/attachment.html>
More information about the LibreOffice
mailing list