Access to the parameters soffice.exe was called with

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
User avatar
Lupp
Volunteer
Posts: 3542
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Access to the parameters soffice.exe was called with

Post by Lupp »

When I wrote small programs in Pascal (different brands) I was used to have access to the commandline parameters/arguments appended to the call to the final executable. This was organised via the predefined function / variable ParamStr(Num: Word) and ParamCount. (ParamStr(0) returned the pathname of the executable itself.) The feature was essential for my work.

Is there any (hidden) feature for the purpose in soffice.exe accessible from BASIC?

VBA seems to provide the commandline via a slightly convoluted process getting a pointer (aliased as a number) first and needing to convert it to the string (access the string based on the pointer?).
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Access to the parameters soffice.exe was called with

Post by RoryOF »

Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Post Reply