Hi,

I'm attaching a calc document with macros I took from oooforum.org. My goal is 
to have a macro intercept certain events such as "underline" or "save".
I'm supposing I need to somehow run the Basic macro "register" within the 
document.

Could anyone please tell me why I'm getting the following whenever I run this 
macro:

BASIC runtime error.
An exception occurred 
Type: com.sun.star.script.provider.ScriptFrameworkErrorException
Message: Macro Library ComponentFactory not found.

The offending line is:

   glob_oDispatchInterceptor = 
oSP.getScript("vnd.sun.star.script:ComponentFactory.DispatchInterceptor.bsh?language=BeanShell&location=document").invoke(Array(),
 Array(), Array())

I've seen this before when trying to call java macros from Basic. 
Why can't it find "ComponentFactory"?
Did I create it where I should have?
Is the path wrong?

Thanks,

Vieri

-- 
To unsubscribe e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to