Drew's full-screen macro

Creating and using forms
Post Reply
tcrabb
Posts: 24
Joined: Mon Apr 28, 2008 4:58 pm

Drew's full-screen macro

Post by tcrabb »

I am trying to run Drew's macro for sizing a form to full screen-screen loading. It works fine on my machine - I am running OO0 2.4.0 on Windows XP Professional.

Other users have OO0 2.4.0 on Windows XP Home SP2 and this macro fails with the following error...

A Scripting Framework error occurred when running Basic script vnd.sun.star.script: Standard.DoFullScreen.onWhenLoading?language=Basic&location=application
Message: BasicProviderImpl:getScript: no script!


Does anyone have an idea what might be the reason for this error?

Thanks in advance for any suggestions.
User avatar
Villeroy
Volunteer
Posts: 31345
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Drew's full-screen macro

Post by Villeroy »

The error message says it all, doesn't it?
Menu:Tools>Macros>Organize...
Application container: Either "My Macros" or "OOo Macros"
Library:"Standard"
Module:"DoFullScreen"
Macro:"onWhenLoading" is not there.

Suggestion: Do not use library "Standard" except for testing or some special purposes.
Move the module into a dedicated library. Push button [Organize...], create library, drag&drop module.
Then select the new library, push [Export...], [X]Export as extension... <specify file name>.
On the other system you can install the extension with a double-click or from menu:Tools>Extensions... [Add...] <yourPackage.oxt>
Change existing assignments from ...Standard... to ...YourNewLibrary...
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
tcrabb
Posts: 24
Joined: Mon Apr 28, 2008 4:58 pm

Re: Drew's full-screen macro

Post by tcrabb »

Thanks Villeroy - works perfectly.

For some reason it also seems faster when running this macro as an extension.
Post Reply