Bug 43378 - When using the COM interface the main window is shown and should not be.
Summary: When using the COM interface the main window is shown and should not be.
Status: RESOLVED DUPLICATE of bug 43944
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.4.4 release
Hardware: Other Windows (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 08:11 UTC by em36
Modified: 2013-11-27 13:59 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
VBS Script that opens LibreOffice main window, but shouldn't (269 bytes, text/plain)
2011-11-30 08:11 UTC, em36
Details

Note You need to log in before you can comment on or make changes to this bug.
Description em36 2011-11-30 08:11:18 UTC
Created attachment 53970 [details]
VBS Script that opens LibreOffice main window, but shouldn't

At some point in the past year or so, scripts that used VBS or Delphi (and presumably other languages) under Windows to run LibreOffice as a service began to see this problem: when the service manager starts, the new LibreOffice main window opens. The scripts no longer run "silently." This problem is described in detail here:

http://user.services.openoffice.org/en/forum/viewtopic.php?f=45&t=43872&p=211375#p211375

A user in that thread provided a script that was designed to the problem, but it doesn't. The main LibreOffice window opens. He asked that a bug be reported, with a copy of his script. Here it is (and the same script is an attachment):

---------------------------------------
Set OpenOffice = CreateObject("com.sun.star.ServiceManager")
MsgBox "Service Manager is opened"
Set StarDesktop = OpenOffice.createInstance("com.sun.star.frame.Desktop")
StarDesktop.terminate
OpenOffice = Null
StarDesktop = Null
MsgBox "Service Manager is closed"
----------------------------------------
Comment 1 tony.caduto 2012-01-05 12:39:09 UTC
I can confirm this behavior when using the COM interface.
Not sure what older version prior to this still works.

This is fairly serious issue as it will break any automation that runs 
when a user is not logged on.
Comment 2 tony.caduto 2012-01-05 12:50:45 UTC
Just a FYI, the problem does not exist on Open Office 3.3
I would prefer not to use the Oracle version, so lets get this fixed.
Comment 3 Marten Feldtmann 2012-03-07 00:26:01 UTC
I can confirm this error also using CLI (C#). The users of our software were not happy with this effect.
Comment 4 Francesco Lo Sapio 2012-03-16 04:59:25 UTC
I can confirm this bug from version 3.4.1 using VB6
I believe that the bug 43944 is a duplicate.
Comment 5 Heiko Czeczior 2012-04-12 08:04:35 UTC
Same behavior with Version 3.5.2

best regards
Heiko
Comment 6 Noel Power 2012-05-03 06:45:56 UTC

*** This bug has been marked as a duplicate of bug 43944 ***