Page 1 of 1

launching ooo with -invisible argument

Posted: Sun Apr 20, 2008 7:26 pm
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

Re: launching ooo with -invisible argument

Posted: Sun Apr 20, 2008 8:39 pm
by AndrewZ
Have you tried -headless?

Re: launching ooo with -invisible argument

Posted: Mon Apr 21, 2008 8:43 am
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

Re: launching ooo with -invisible argument

Posted: Mon Apr 21, 2008 4:23 pm
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.

Re: launching ooo with -invisible argument

Posted: Mon Apr 21, 2008 6:30 pm
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

Re: launching ooo with -invisible argument

Posted: Tue Apr 22, 2008 2:27 am
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

Re: launching ooo with -invisible argument

Posted: Tue Apr 22, 2008 9:58 am
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?

Re: launching ooo with -invisible argument

Posted: Tue Apr 22, 2008 3:04 pm
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.