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

[SOLVED] Load Libraries

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


Joined: 05 Sep 2011
Posts: 31

PostPosted: Thu Mar 01, 2012 5:33 am    Post subject: [SOLVED] Load Libraries Reply with quote

Well folks,

I have a small base database working only with standalone forms (writer documents). As a matter of fact, I need to protect the code of my macros from users and as solution I choosed to put my macros in a Library called "Library1" on every document and then set up a password, because doing this way instead of saving my macros on Application makes it more easy the set up on every machine, maintenance and distribution, so far so good.
The first Form loaded works nice, but, every time I open another form by macros called from the first one, the second one form doesn't load the "Library1" and none of the macros saved in there.
I tried to Load the missing library with the following code, wich is triggered by the event "OnWhenLoading" of every form:
Code:

Sub CarregaBiblioteca
BasicLibraries.LoadLibrary("Library1")
End Sub


I'll apreciate any help regarding this struggle! I'm kind of losted...

Thanks!


Last edited by caravas on Thu Mar 01, 2012 8:24 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
B Marcelly
Super User
Super User


Joined: 12 May 2004
Posts: 1453
Location: France

PostPosted: Thu Mar 01, 2012 6:32 am    Post subject: Reply with quote

Hi,
Among numerous similar threads:
[Solved] Macro doesn't run until document reloaded
_________________
Bernard

OpenOffice.org 1.1.5 fr / Apache OpenOffice 4.0.1 / LibreOffice 4.1.0
MS-Windows 7 Home SP1
This forum is spammed, use instead Apache OpenOffice forums
Back to top
View user's profile Send private message Visit poster's website
caravas
General User
General User


Joined: 05 Sep 2011
Posts: 31

PostPosted: Thu Mar 01, 2012 8:26 am    Post subject: Reply with quote

B Marcelly wrote:
Hi,
Among numerous similar threads:
[Solved] Macro doesn't run until document reloaded


Thank you so much! My liffe has meaning once more!
Back to top
View user's profile Send private message MSN Messenger
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