OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Simple dialog creates error, only the first time

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
ChillWill
General User
General User


Joined: 24 Jan 2006
Posts: 19
Location: Wisconsin, USA

PostPosted: Sun Mar 28, 2010 4:58 am    Post subject: Simple dialog creates error, only the first time Reply with quote

I created a dialog box using the GUI (drawing the button and label box on the rectangle, etc.)

Here is the code that calls the dialog box:

[code]Sub ShowWarningDialog()
Dim oDialog as Object
oDialog = createUnoDialog(DialogLibraries.Standard.Dialog1)
oDialog.execute()
End sub [/code]

The first time the dialog gets called, this error message appears:

[code]BASIC runtime error.
An exception occurred
Type: com.sun.star.lang.WrappedTargetException
Message:
TargetException:
Type: com.sun.star.script.LibraryNotLoadedException
Message: .[/code]

The next time the dialog gets called, it works fine. I have tried adding various loadlibrary statements in Sub Main and in subShowWarningDialog (quoted above) but it's not working. For one thing, I don't know what library needs to be loaded.

Thanks for any ideas.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group