>From a java application we loaded an .ott template.
The process seems to not run and seems frozen while loading the template. 

This problem appears with the open office 3.2.

Open office : 3.2.0 OOO320m12 build 9483
Os : windows XP version 2002 service pack 2

Command line and its parameter :
c:\Program Files\OpenOffice.org 3\program\soffice.exe,
 -nologo, -nodefault, -norestore, -nocrashreport,
-nolockcheck,-accept=socket,host=127.0.0.1,port=8100;
urp;StarOffice.ServiceManager


Code used to launch Open office :
{
  oooProcess = Runtime.getRuntime().exec(args);
  oooProcess.getInputStream().close();
  oooProcess.getErrorStream().close();
  oooProcess.getOutputStream().close();
}

Code used to load the template :
{
  PropertyValue vv= new PropertyValue();
  vv.Name="MacroExecutionMode";
  vv.Value =com.sun.star.document.MacroExecMode.ALWAYS_EXECUTE_NO_WARN;
  PropertyValue p= new PropertyValue();
  p.Name = "AsTemplate";
  p.Value = new Boolean(true);  

  PropertyValue loadProps[] = { p, vv};
  XComponent document =  
componentLoader.loadComponentFromURL(template.getTemplateUri(), "_blank", 0, 
loadProps);
}

We made some tries, and it seems that the process Open office is not completly
launched when we want to load the template.

Do you have a solution? 
Thank you in advance.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Répondre à