incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120282] OOoBean don´t open dialogs
Date Sun, 15 Jul 2012 18:07:47 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120282

--- Comment #2 from schorschlan@gmx.de ---
Yes, this example work. I have found the reason. In the maintance application
class was created an OOoBean und connected with office.

private static String interProcCommunicationString =
"pipe,name=DocumentManager";
Thread t1 = new Thread()
{
 @Override
 public void run()
 {
   try
   {
     oBean = new OOoBean();
     String path = System.getenv("UNO_PATH");
     path = path.replace('\\', '/');
     String commandLine = "\"" + path + "/soffice\" -headless -nologo   
-accept=" + interProcCommunicationString + ";urp;StarOffice.ServiceManager";
     Runtime.getRuntime().exec(commandLine);
     // suspend the current thread to let OO server start
     Thread.sleep(500);
    oBean.startOOoConnection("uno:" + interProcCommunicationString +
";urp;StarOffice.ServiceManager");
   }
 catch (Exception e)
 {
  logger.error(e);
 }
}
};
t1.start();

In the other class i have create a new OOoBean object.

oBean = new OOoBean();
add(oBean, BorderLayout.CENTER);
oBean.loadFromURL("private:factory/swriter", null);
oBean.aquireSystemWindow()

And than it will not opened the dialogs. If i don´t start the Thread than it
will opened the dialogs.
It that problem the parameter -headless?

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message