[Solved] Use Macro in Linux environment from Windows

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
User avatar
Tiger42
Posts: 66
Joined: Tue Apr 28, 2015 12:34 pm
Location: India

[Solved] Use Macro in Linux environment from Windows

Post by Tiger42 »

Hello, All
I have prepared some macros in windows system, Now I want to use those all macros in Linux Environment, is it Possible or not..?
I have checked and tried to use macros on Linux system but not happened , or Its possible that I don't know real method
How can I export macro ?
I have tried to export and again import into Linux but when I tried to run that macro there were error occurred (see attached)
Now I am stuck and I can't find any way to run all macros in Linux
I have libreoffice version in windows : 4.3.5.2 and In Linux: 3.5.4.2
So is it affect.?
anybody please explain steps for macro export from Standard library
may I create library and use macro from my own library
(i have also tried that things not succeed again ;()
After export macro, How can import to Linux environment? and after how can I run successfully those all macro which I have made in windows system
If anybody could help, then It would be better
Thanks in advance
Last edited by Hagar Delest on Thu Nov 17, 2016 10:13 pm, edited 2 times in total.
Reason: tagged [Solved].
Libre Office 5.0/ Open Office /MS Excel/ Windows 7-8
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Use Macro in Linux environment from Windows

Post by RoryOF »

You need to study
https://wiki.openoffice.org/wiki/URL_Basics
and perhaps read Andrew Pitonyak's book on OO macros
http://www.pitonyak.org/oo.php
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Use Macro in Linux environment from Windows

Post by Villeroy »

What kind of programmer are you?
Where does the "file:///tmp/....csv" come from? If it happens to be my SheetMerger.ods from viewtopic.php?f=21 you are free to mention this work of mine so we can discuss about the same thing. Simply clear any contents from the path cell and the file picker macro will not raise that error anymore. Meanwhile I fixed this little glitch and uploaded the solution as a template (.ots).
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
User avatar
Tiger42
Posts: 66
Joined: Tue Apr 28, 2015 12:34 pm
Location: India

Re: Use Macro in Linux environment from Windows

Post by Tiger42 »

we can run macro through this command
sudo libreoffice5.0 --invisible --headless --nofirststartwizard --norestore filename_macro.ods macro://filename_macro/Standard.mymacro.mine
Libre Office 5.0/ Open Office /MS Excel/ Windows 7-8
Post Reply