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

Run a macro stored in a "free" file

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


Joined: 06 Dec 2004
Posts: 4
Location: Besancon, France

PostPosted: Tue Dec 07, 2004 1:39 am    Post subject: Run a macro stored in a "free" file Reply with quote

Hi experts !

I would like to know if it's possible to have a macro stored in a given file, not in an OO's tree (e.g: 'myProject/doc/myExporterMacro.xba'), which we could pass on command line macro's URL (something like 'ooffice -headless "macro:pathToMacro/macro.function()').
the aim is to have the macro's file managed in CVS, with the scripts automatically exporting the whole project's documentation to a standardized area (ISO rules ok... Laughing )
Back to top
View user's profile Send private message
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Tue Dec 07, 2004 8:14 am    Post subject: Reply with quote

It would be possible to have a pair of macros which install a free macro into the office, and then copy a macro from the office back to a free file.

You could call both the install and extract macros from the command line.

But you could not, AFAIK, execute a macro directly from a "free" file.


For more about extracting and installing macros using Basic code, see these....

The Quine program
http://www.oooforum.org/forum/viewtopic.php?t=10069
See the first example in this thread. It is not really a Quine. But it does show how to extract the text of a Basic program using Basic.


See the following items at OOoMacros.org....
Add On Installer
Add On Tool

See Andrew Pitonyak's Macro document, which can be found here. Section 5.29 Libraries may have what you need to know.
_________________
Want to make OOo Drawings like the colored flower design to the left?
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