BasicProviderImpl::getScript: no script!

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
User avatar
onidarbe
Posts: 84
Joined: Thu Nov 29, 2007 8:03 pm
Location: Belgium, Mechelen

BasicProviderImpl::getScript: no script!

Post by onidarbe »

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

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_","com.sun.star.util.XModifyListener")
	oListenerRange.addModifyListener(oListener)
End Sub
Sub Stop_Listener
	oListenerRange.removeModifyListener(oListener)
End Sub
Sub test_Disposing(oEvent)
End Sub 
Sub test_Modified(oEvent)
	mySub()
End Sub
Thanks !
OOo 3.1.X on Ms Windows XP
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: BasicProviderImpl::getScript: no script!

Post by hol.sten »

onidarbe wrote:BasicProviderImpl::getScript: no script!
This problems hes been reported several times. Examples:
- http://www.oooforum.org/forum/viewtopic ... t+listener
- http://www.oooforum.org/forum/viewtopic ... ipt+script
- http://www.oooforum.org/forum/viewtopic ... 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.

Regards
hol.sten
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
Post Reply