[Solved] Calling Calc from a Basic program

Discuss the spreadsheet application
Post Reply
drcox041559
Posts: 4
Joined: Tue Nov 20, 2018 6:31 pm

[Solved] Calling Calc from a Basic program

Post by drcox041559 »

I want to call CALC from a BASIC program, which works, but I need the command line parameter to load a specific spreadsheet.

Example:

"C:\Program Files (x86)\OpenOffice 4\program\scalc.exe"

starts the application with a new spreadsheet but how do I specify an existing spreadsheet in the call?

The call would be outside.of OOP from a FreeBASIC *.exe program. Therefore an external IDE.
Last edited by Hagar Delest on Thu Dec 06, 2018 11:35 pm, edited 2 times in total.
Reason: tagged solved
OpenOffice 4.1 on Windows 7
merlijn
Posts: 29
Joined: Mon Jun 11, 2018 8:29 pm

Re: Calling CALC from a BASIC program

Post by merlijn »

"C:\Program Files (x86)\OpenOffice 4\program\scalc.exe" "c:\path_to_your_spreadsheet\spreadsheet.ods"
OpenOffice 4.1.6 on Windows 10 x64
User avatar
Zizi64
Volunteer
Posts: 11359
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Calling CALC from a BASIC program

Post by Zizi64 »

I want to call CALC from a BASIC program, which works, but I need the command line parameter to load a specific spreadsheet.
Do you mean the StarBasic inside the AOO, or your Basic IDE is located outside the AOO (VB, VBA or other)?
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
drcox041559
Posts: 4
Joined: Tue Nov 20, 2018 6:31 pm

Re: Calling CALC from a BASIC program

Post by drcox041559 »

Thanks Loads
OpenOffice 4.1 on Windows 7
Post Reply