BasicProviderImpl::getScript: no script!

Creating a macro - Writing a Script - Using the API

BasicProviderImpl::getScript: no script!

Postby onidarbe » Sun Dec 09, 2007 5:32 pm

Hi, I get a nasty error-window comming up each time I go to help (F1) or moving around in the help-window from CALC oo-Basic.
Probably because I use an event handler while moving focus to an other window, in this case, the help-window. Or is it the build-in event handler "Open Document" which I've pointed to the sub Start_Listener ?

"Message: BasicProviderImpl::getScript: no script!"

Does anyone know what I should change at this code to stop showing this error-window?

Code: Select all   Expand viewCollapse view
Global oListener As Object
Global oListenerRange As Object
Sub Start_Listener   'This sub is started with the event "Document open"
   oListenerRange=thisComponent.sheets.getByName("EC37 MIRA")
   oListener = createUnoListener("test_","")
End Sub
Sub Stop_Listener
End Sub
Sub test_Disposing(oEvent)
End Sub
Sub test_Modified(oEvent)
End Sub

Thanks !
OOo 3.1.X on Ms Windows XP
User avatar
Posts: 84
Joined: Thu Nov 29, 2007 8:03 pm
Location: Belgium, Mechelen

Re: BasicProviderImpl::getScript: no script!

Postby hol.sten » Sun Jan 13, 2008 1:41 am

onidarbe wrote:BasicProviderImpl::getScript: no script!

This problems hes been reported several times. Examples:
- ... t+listener
- ... ipt+script
- ... ipt+script

Most solutions of this problem describe that you have to put your code in another library. Don't put it in a library of a single document but into the standard "My Macros & Dialogs" library.

OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 4 guests