Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.