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

install macro from document

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


Joined: 20 Jul 2006
Posts: 35

PostPosted: Fri Sep 15, 2006 4:42 am    Post subject: install macro from document Reply with quote

hi everybody .... here a new problem from my side...

i want to embed a macro into a document and than spread out my document to clients. the only think the clients have to do .... to open the document ... read some license and click a button. after click button the macro should be transfered from document user macro repository.

i have seen such way to install macro .... i think it was a macro for workaround the issue that there was no "transfer format" in version 1.x of openoffice ... but i didn't found this macro nowadays (to extract relevant code snippet for macro installation).

could anybody told me a code snippet or tutorial todo such a thing???

thank you for your help
Back to top
View user's profile Send private message
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3655
Location: Columbus, Ohio, USA

PostPosted: Fri Sep 15, 2006 5:42 am    Post subject: Reply with quote

If you own my book, check out chapter 16. if not, then you will access the libraries from the document using the global method BasicLibraries. To access the libaries for the users "global" libraries, use GlobalScope.BasicLibraries to access the library container.
_________________
--
Andrew Pitonyak
http://www.pitonyak.org/oo.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
eckobar
General User
General User


Joined: 20 Jul 2006
Posts: 35

PostPosted: Fri Sep 15, 2006 5:49 am    Post subject: Reply with quote

where could i found services or interfaces in the IDL reference for your procedure???
Back to top
View user's profile Send private message
Zarius
OOo Enthusiast
OOo Enthusiast


Joined: 21 Jan 2005
Posts: 142
Location: Brisbane, Australia

PostPosted: Sun Sep 17, 2006 4:46 pm    Post subject: Reply with quote

Hi eckobar,

You might want to check out the "Addon installer" which is the first entry on this page. It sounds like what you are describing.

Regards,
Zarius.
_________________
Zarius Tularial. (WinXP - OOo 1.1.4, FedoraCore 4 - OOo 2.0, RHEL4 - StarOffice 7)
Quoots - a quicker way to open your documents and fill in template details in OOo. (written in OOBasic)
Back to top
View user's profile Send private message Visit poster's website
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3655
Location: Columbus, Ohio, USA

PostPosted: Sun Sep 17, 2006 8:55 pm    Post subject: Reply with quote

eckobar wrote:
where could i found services or interfaces in the IDL reference for your procedure???

I usually inspect the object to see what I can do. I do demonstrate how to create and remove libraries and modules in AndrewBase.odt, but the add-on installer already referenced might gbe a better example for what you desire.
_________________
--
Andrew Pitonyak
http://www.pitonyak.org/oo.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
eckobar
General User
General User


Joined: 20 Jul 2006
Posts: 35

PostPosted: Sun Sep 17, 2006 10:09 pm    Post subject: Reply with quote

thx pitonyak, will check out your tips.
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