[Solved] Start Macro Error

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Tobin
Posts: 35
Joined: Sun Feb 08, 2009 3:31 am
Location: Houston, Texas USA

[Solved] Start Macro Error

Post by Tobin »

Howdy,

When I first start the macro I'm working on it causes an error. After acknowledging the error the macro starts without an error. Attached is a zip file containing the macro and a bmp of the error.

Do I have something set wrong?
Any suggestions would be appreciated.
Attachments
OpenError.zip
(37.3 KiB) Downloaded 278 times
Last edited by Tobin on Sat Feb 14, 2009 10:06 pm, edited 1 time in total.
Tobin Sparks
OOo 3.0, XP
Houston, Texas USA
OOo 3.0.X on Ms Windows XP
FJCC
Moderator
Posts: 9280
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Start Macro Error

Post by FJCC »

I think you just need to add

DialogLibraries.LoadLibrary( "Standard" )

before your createUnoDialog statement.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Tobin
Posts: 35
Joined: Sun Feb 08, 2009 3:31 am
Location: Houston, Texas USA

[Solved] Re: Start Macro Error

Post by Tobin »

Fantastic!

I don't remember seeing that line in all the examples and research I've looked thru. That really makes sense though.

Thanks FJCC
Tobin Sparks
OOo 3.0, XP
Houston, Texas USA
OOo 3.0.X on Ms Windows XP
Post Reply