launching ooo with -invisible argument

Discuss setup / installation issues - Add a spell checker, Language pack?
Post Reply
User avatar
gvanderschooten
Posts: 15
Joined: Sun Apr 20, 2008 6:45 pm
Location: France

launching ooo with -invisible argument

Post by gvanderschooten »

Welcome beginner. Please answer all of the questions below which may provide information necessary to answer your question.
-----------------------------------------------------------------------------------------------------------
Which version of OpenOffice.org are you using? 2.3.1
What Operating System (version) are you using?MS windows XP family
What is your question or comment?
I tried to start ooo on a calc file with the -invisible argument
I do this thru a shortcut with the following command line:
"C:\Program Files\OpenOffice.org 2.3\program\soffice.exe" -invisible test.ods
the test.ods file is located within the working directory "E:\temp_bureau\Test automation saisie" as stated in "start in" of the the shortcut.
Result is: It does not work, I still have the UI windows that opens (even if the logo does not show up).
I tried the -nologo argument with the same shortcut and it works fine (no ooo logo showing)
Does somebody use this -invisible argument and have it working?
Thanks for help
User avatar
AndrewZ
Volunteer
Posts: 633
Joined: Mon Oct 08, 2007 1:25 am
Location: Colorado, USA

Re: launching ooo with -invisible argument

Post by AndrewZ »

Have you tried -headless?
* Did you solve your problem? Do others a favor: Post the solution
* Visit OpenOffice.org Ninja (blog) and OpenOffice.org Ninja Wiki for news, previews, troubleshooting, etc.
OOo 3.0.X on Fedora 9 + XP
User avatar
gvanderschooten
Posts: 15
Joined: Sun Apr 20, 2008 6:45 pm
Location: France

Re: launching ooo with -invisible argument

Post by gvanderschooten »

I just did with
"C:\Program Files\OpenOffice.org 2.3\program\soffice.exe" -headless test.ods
Same thing, no logo..but UI windows opens!
Anyway..Thanks for your help
User avatar
AndrewZ
Volunteer
Posts: 633
Joined: Mon Oct 08, 2007 1:25 am
Location: Colorado, USA

Re: launching ooo with -invisible argument

Post by AndrewZ »

:o It works on Linux. Try all of them together.

Code: Select all

"C:\Program Files\OpenOffice.org 2.3\program\soffice.exe" -headless -invisible -nologo test.ods
Also, make sure you have the quickstarter closed.
* Did you solve your problem? Do others a favor: Post the solution
* Visit OpenOffice.org Ninja (blog) and OpenOffice.org Ninja Wiki for news, previews, troubleshooting, etc.
OOo 3.0.X on Fedora 9 + XP
User avatar
gvanderschooten
Posts: 15
Joined: Sun Apr 20, 2008 6:45 pm
Location: France

Re: launching ooo with -invisible argument

Post by gvanderschooten »

I tried it! Unfortunatly it does not work with MS windows
Always the same result: no logo, but UI windows shows up.
Damned MS, but I have no choice! I'll try to find an other way to get the required functionnality (opening a VBA grid, without showing the main window)
Thanks again
User avatar
AndrewZ
Volunteer
Posts: 633
Joined: Mon Oct 08, 2007 1:25 am
Location: Colorado, USA

Re: launching ooo with -invisible argument

Post by AndrewZ »

Try searching the bug tracker to see if it is reported. If so, there may be a workaround. Also, the "target milestone" would tell you when it will be fixed.

http://qa.openoffice.org/issues/query.cgi
* Did you solve your problem? Do others a favor: Post the solution
* Visit OpenOffice.org Ninja (blog) and OpenOffice.org Ninja Wiki for news, previews, troubleshooting, etc.
OOo 3.0.X on Fedora 9 + XP
User avatar
gvanderschooten
Posts: 15
Joined: Sun Apr 20, 2008 6:45 pm
Location: France

Re: launching ooo with -invisible argument

Post by gvanderschooten »

Looking at QA issues tracking I just found one issue (28716) speaking about the -invisible arguments, but not addressing my problem.
I tried different ways to start the application; eather using directly scalc.exe or using soffice.exe, I got the same results.
Side effect is that when you use the -headless argument, ooo does not ask for macro authorisation..so the program does not work at all (VBA dialog not started)!
As a work around, I tried to start the application within a reduce window. But when I quit the VBA dialogbox and want to show the UI window, I do not know how to do it! I did not found the method that tell ooo to set the window from reduce mode to normal mode.
To set the UI window invisible/visible when starting in normal mode, I use:
thiscomponent.getCurrentController().getFrame().getContainerWindow().setVisible( True/False )
which works fine, except that problem of the UI main window showing at the beginning, before my macro sets it to invisible.
Conclusion: do I open an issue regarding this probem?
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: launching ooo with -invisible argument

Post by acknak »

You might take a look at these threads (Googled out of thin air)--if you've not already:
http://www.oooforum.org/forum/viewtopic.phtml?t=11220
http://www.oooforum.org/forum/viewtopic.phtml?t=17230

Many resource links there, and comments.
AOO4/LO5 • Linux • Fedora 23
Post Reply