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

Move a macro from one computer to another

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


Joined: 24 Oct 2008
Posts: 3

PostPosted: Fri Oct 24, 2008 2:11 pm    Post subject: Move a macro from one computer to another Reply with quote

I want to move a macro created on a windows box at work to a Linux box at home. The Linux box at home does not have a GUI (server). I just want to use the macro to convert documents to different formats using the -invisible option.

How can I move the macro from one computer the other? Where is the macro located on the Windows box? Where are macros located on the Linux box? Can I just copy and paste from one directory to the other? this is for OOo 3.0.

Otherwise, is there a way to create a macro on a Linux command line?

Thanks,
Back to top
View user's profile Send private message
Danad
OOo Advocate
OOo Advocate


Joined: 22 Feb 2004
Posts: 293
Location: Brasil

PostPosted: Mon Oct 27, 2008 4:43 am    Post subject: Reply with quote

Hi,

Is it a BASIC macro ?
1- at work, export your macro as extension
2- at work, get help for unopkg
3- at home, use unopkg to install your extension

HTH
Back to top
View user's profile Send private message
MrBill1028
General User
General User


Joined: 13 Sep 2008
Posts: 15
Location: COLORADO

PostPosted: Mon Oct 27, 2008 5:23 am    Post subject: Reply with quote

What is unopkg? I want to create an Add-In so I can send a Macro I created on my machine to a frfiend. How do you Create an .oxt file?
_________________
Rank Amateur Willing To Learn
Back to top
View user's profile Send private message
Danad
OOo Advocate
OOo Advocate


Joined: 22 Feb 2004
Posts: 293
Location: Brasil

PostPosted: Mon Oct 27, 2008 4:18 pm    Post subject: Reply with quote

Hi,

unopkg is a command line extension manager. So you can use it to install / uninstall extensions for OOo.

You can find it at <ooo_install>/program.

HTH
Back to top
View user's profile Send private message
MrBill1028
General User
General User


Joined: 13 Sep 2008
Posts: 15
Location: COLORADO

PostPosted: Wed Oct 29, 2008 4:56 am    Post subject: create extendsion Reply with quote

I haven't been able to find where to create an .oxt file so that I can save the Macro I created and copy it to some one elses machine. Does unopkg come with help files to explain how to use it and where do i find the Macro I built to export it? Thanks
_________________
Rank Amateur Willing To Learn
Back to top
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 8984
Location: Lexinton, Kentucky, USA

PostPosted: Wed Oct 29, 2008 7:16 am    Post subject: Reply with quote

If the macro is saved in a document then you can just take the document to the other computer.

Also in the Basic IDE you will find a Save Basic icon and an Insert Basic Source icon so save your macro to a file and insert that file on the other computer.
Back to top
View user's profile Send private message
Danad
OOo Advocate
OOo Advocate


Joined: 22 Feb 2004
Posts: 293
Location: Brasil

PostPosted: Wed Oct 29, 2008 7:48 am    Post subject: Reply with quote

Steps to export macros as extension:
1) create a new library under My Macros ...
2) create a new module
3) write and test your macros inside
4) Export it as extension (tools : macros : organize dialogs : tab Libraries

HTH
Back to top
View user's profile Send private message
moriancumer_12
Newbie
Newbie


Joined: 24 Oct 2008
Posts: 3

PostPosted: Wed Oct 29, 2008 8:09 am    Post subject: Reply with quote

Danad wrote:
Steps to export macros as extension:
1) create a new library under My Macros ...
2) create a new module
3) write and test your macros inside
4) Export it as extension (tools : macros : organize dialogs : tab Libraries

HTH


I have a macro in "My Macros.Standard.Module1". When I go to organize dialogs : tab Libraries, all I see is Standard and the export button is greyed out, so I am unable to use that option.
Back to top
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 8984
Location: Lexinton, Kentucky, USA

PostPosted: Wed Oct 29, 2008 10:24 am    Post subject: Reply with quote

Create a library other than Standard, move the macro there and Export will be active.
Back to top
View user's profile Send private message
nariman
Newbie
Newbie


Joined: 29 Oct 2008
Posts: 2

PostPosted: Wed Oct 29, 2008 10:49 am    Post subject: Reply with quote

how do you call the extension from the command line?
Back to top
View user's profile Send private message
moriancumer_12
Newbie
Newbie


Joined: 24 Oct 2008
Posts: 3

PostPosted: Wed Oct 29, 2008 11:26 am    Post subject: Reply with quote

Okay, by moving the Module1 from Standard to Library, I was able to export as an extension. Now, how to use the exported extension to a different computer on the commandline?
Back to top
View user's profile Send private message
MrBill1028
General User
General User


Joined: 13 Sep 2008
Posts: 15
Location: COLORADO

PostPosted: Wed Oct 29, 2008 8:38 pm    Post subject: Reply with quote

Thank-you for all your help. I really appreciate you all and I'm learning Very Happy
_________________
Rank Amateur Willing To Learn
Back to top
View user's profile Send private message
MrBill1028
General User
General User


Joined: 13 Sep 2008
Posts: 15
Location: COLORADO

PostPosted: Tue Dec 02, 2008 1:12 pm    Post subject: Solved create oxt file, how to edit on new mach. Reply with quote

Thank-you for all your help on this. One last problem after I copy this to another machine I need to edit the file to change a path name to match that machine. I can edit the Macro on the original machine but it won't let me on the new machine. What do I have to change to get it editable? It's listed under MyMacros > CLNFSAR > MODULE1 > CLNFSAR2. CLNFSAR2 is the actual Macro. The .oxt file is CLNFSAR.oxt.
_________________
Rank Amateur Willing To Learn
Back to top
View user's profile Send private message
prettyreplica
Newbie
Newbie


Joined: 02 Dec 2008
Posts: 2
Location: USA

PostPosted: Tue Dec 02, 2008 11:40 pm    Post subject: Reply with quote

Laughing it is good! done it
_________________
Replica watches,Rolex,Omega,Gucci,fake watches,www.TickWatches.com
Back to top
View user's profile Send private message Visit poster's website
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