Hello Bernard,
here is my Java code snippet:
XScriptProviderSupplier scriptProviderSupplier =
(XScriptProviderSupplier)UnoRuntime.queryInterface(XScriptProviderSupplier.class,
xComponent);
XScriptProvider xScriptProvider =
scriptProviderSupplier.getScriptProvider();
XScript xScript =
xScriptProvider.getScript("vnd.sun.star.script:Library1.Module1.Main?language=Basic&location=document");
If the document is loaded in hidden mode a get the error:
com.sun.star.script.provider.ScriptFrameworkErrorException:
BasicProviderImpl::getScript: no script!
If the document is visible the code works without any problem.
Best regards
Andreas
Bernard Marcelly schrieb:
Bonjour Andreas Bröker
Message du 2006-09-11 11:01:
I am trying to access StarBasic scripts with the UNO API. Everything
works fine if the document is visible. But if the document is loaded
in hidden mode the StarBasic scripts can not be found in the document.
How can I access StarBasic Scripts in hidden documents?
Works for me, visible or hidden, in Basic code or through COM, on OOo
2.0.3.
Can you show the relevant part of your Java code ?
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]