| View previous topic :: View next topic |
| Author |
Message |
moriancumer_12 Newbie

Joined: 24 Oct 2008 Posts: 3
|
Posted: Fri Oct 24, 2008 2:11 pm Post subject: Move a macro from one computer to another |
|
|
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 |
|
 |
Danad OOo Advocate

Joined: 22 Feb 2004 Posts: 293 Location: Brasil
|
Posted: Mon Oct 27, 2008 4:43 am Post subject: |
|
|
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 |
|
 |
MrBill1028 General User


Joined: 13 Sep 2008 Posts: 15 Location: COLORADO
|
Posted: Mon Oct 27, 2008 5:23 am Post subject: |
|
|
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 |
|
 |
Danad OOo Advocate

Joined: 22 Feb 2004 Posts: 293 Location: Brasil
|
Posted: Mon Oct 27, 2008 4:18 pm Post subject: |
|
|
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 |
|
 |
MrBill1028 General User


Joined: 13 Sep 2008 Posts: 15 Location: COLORADO
|
Posted: Wed Oct 29, 2008 4:56 am Post subject: create extendsion |
|
|
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 |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8984 Location: Lexinton, Kentucky, USA
|
Posted: Wed Oct 29, 2008 7:16 am Post subject: |
|
|
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 |
|
 |
Danad OOo Advocate

Joined: 22 Feb 2004 Posts: 293 Location: Brasil
|
Posted: Wed Oct 29, 2008 7:48 am Post subject: |
|
|
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 |
|
 |
moriancumer_12 Newbie

Joined: 24 Oct 2008 Posts: 3
|
Posted: Wed Oct 29, 2008 8:09 am Post subject: |
|
|
| 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 |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8984 Location: Lexinton, Kentucky, USA
|
Posted: Wed Oct 29, 2008 10:24 am Post subject: |
|
|
| Create a library other than Standard, move the macro there and Export will be active. |
|
| Back to top |
|
 |
nariman Newbie

Joined: 29 Oct 2008 Posts: 2
|
Posted: Wed Oct 29, 2008 10:49 am Post subject: |
|
|
| how do you call the extension from the command line? |
|
| Back to top |
|
 |
moriancumer_12 Newbie

Joined: 24 Oct 2008 Posts: 3
|
Posted: Wed Oct 29, 2008 11:26 am Post subject: |
|
|
| 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 |
|
 |
MrBill1028 General User


Joined: 13 Sep 2008 Posts: 15 Location: COLORADO
|
Posted: Wed Oct 29, 2008 8:38 pm Post subject: |
|
|
Thank-you for all your help. I really appreciate you all and I'm learning  _________________ Rank Amateur Willing To Learn |
|
| Back to top |
|
 |
MrBill1028 General User


Joined: 13 Sep 2008 Posts: 15 Location: COLORADO
|
Posted: Tue Dec 02, 2008 1:12 pm Post subject: Solved create oxt file, how to edit on new mach. |
|
|
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 |
|
 |
prettyreplica Newbie

Joined: 02 Dec 2008 Posts: 2 Location: USA
|
Posted: Tue Dec 02, 2008 11:40 pm Post subject: |
|
|
it is good! done it _________________ Replica watches,Rolex,Omega,Gucci,fake watches,www.TickWatches.com |
|
| Back to top |
|
 |
|