| View previous topic :: View next topic |
| Author |
Message |
eckobar General User


Joined: 20 Jul 2006 Posts: 35
|
Posted: Fri Sep 15, 2006 4:42 am Post subject: install macro from document |
|
|
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 |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Fri Sep 15, 2006 5:42 am Post subject: |
|
|
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 |
|
 |
eckobar General User


Joined: 20 Jul 2006 Posts: 35
|
Posted: Fri Sep 15, 2006 5:49 am Post subject: |
|
|
| where could i found services or interfaces in the IDL reference for your procedure??? |
|
| Back to top |
|
 |
Zarius OOo Enthusiast


Joined: 21 Jan 2005 Posts: 142 Location: Brisbane, Australia
|
Posted: Sun Sep 17, 2006 4:46 pm Post subject: |
|
|
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 |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Sun Sep 17, 2006 8:55 pm Post subject: |
|
|
| 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 |
|
 |
eckobar General User


Joined: 20 Jul 2006 Posts: 35
|
Posted: Sun Sep 17, 2006 10:09 pm Post subject: |
|
|
| thx pitonyak, will check out your tips. |
|
| Back to top |
|
 |
|