[Solved] Transfer Macro Dialog to a different PC

Discuss setup / installation issues - Add a spell checker, Language pack?
Post Reply
Shreve Johnson
Posts: 4
Joined: Tue Jun 18, 2013 1:56 am

[Solved] Transfer Macro Dialog to a different PC

Post by Shreve Johnson »

Novice user here and just created my first Macros and Dialog in OpenOffice Calc which need to be transferred to another PC. I have saved macros as a .txt file which I can transfer to another PC but I do not know how to transfer DIalog to this other PC.

Any help will be appreciated. Thank you.
Last edited by Shreve Johnson on Tue Aug 13, 2013 3:37 am, edited 1 time in total.
Openoffice 3.4.1, Vista
User avatar
Charlie Young
Volunteer
Posts: 1559
Joined: Fri May 14, 2010 1:07 am

Re: Transfer Dialog to a different PC

Post by Charlie Young »

The toolbar in the Dialog Editor has "Import Dialog" and "Export Dialog" buttons. The Export button saves the dialog to an XML file with the extension .xdl, and the import button imports such files. You can also copy your .ods file, rename it to .zip, and extract its files. The dialogs will be in the extracted Dialogs folder as .xml files under "Standard" or whatever library name you may have created. These .xml files are identical to the .xdl files created by Export.
Apache OpenOffice 4.1.1
Windows XP
User avatar
Hagar Delest
Moderator
Posts: 33650
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Transfer Macro Dialog to a different PC

Post by Hagar Delest »

You can also embed your macros + dialogs in an extension. There is the Basic extension builder (or something like that) that is an easy wizard to do such operation. Then it's very easy to install the macro on other machines.

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the edit button if your issue has been fixed.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
Shreve Johnson
Posts: 4
Joined: Tue Jun 18, 2013 1:56 am

Re: Transfer Macro Dialog to a different PC

Post by Shreve Johnson »

I checked out the export and import buttons on the toolbar and exported the xdl file for the Dialog. I am now waiting for the other PC to do the import when the PC is available. Will post later when all done. Thanks all.
Openoffice 3.4.1, Vista
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Transfer Macro Dialog to a different PC

Post by Villeroy »

Easiest method:

if all your code and dialogs are in the "Standard" library:
Call the macro organizer, tab "Libraries"
Create a new library (not the "Standard" one).
Move the modules and the dialogs into that library.
Adjust the script events to the new location.
endif

Create an extension from that library.

A double-click installs that extension on the target system.

Next time you start your macro project with a separate, uniquely named library.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Shreve Johnson
Posts: 4
Joined: Tue Jun 18, 2013 1:56 am

Re: Transfer Macro Dialog to a different PC

Post by Shreve Johnson »

Hi,
I tried to import dialogs on the other PC using Charlies method above but could not find the import button. I could only see the export button. This other PC has Windows 7 and OpenOffice 3.4.1. I can see the import button on my PC which has windows vista and OpenOffice 3.4.1. Not sure how to locate the import button or do the import to this other PC. Hoping somebody can help

I was in a rush and tried to use Villeroys method but got lost on line 4 "Move the modules and ....".

THANKS.
Openoffice 3.4.1, Vista
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Transfer Macro Dialog to a different PC

Post by Villeroy »

Tools>Extensions... installs all kinds of extensions (templates, dictionaries, macros and UNO components).
The import button for exported libraries (folders with code and dialogs not bundled in extensions) sits right above the export button on the library tab of the macro dialog.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Shreve Johnson
Posts: 4
Joined: Tue Jun 18, 2013 1:56 am

Re: Transfer Macro Dialog to a different PC

Post by Shreve Johnson »

I installed OpenOffice 4 on the other PC. The import button was now visible and I was able to import the Dialogs on this other PC. Going is slow at my end but problem solved. Thank you all.
Openoffice 3.4.1, Vista
Post Reply