OpenOfficeServer

From Plex-XML

Jump to: navigation, search

For some configurations we use OpenOffice as a service to create PDF/Excel and so on. So here is a little HOWTO

  1. Install OpenOffice and start it at least one time.
  2. Download and install the Windows Server 2003 Resource Kit Tools
  3. Read how to create an own service
  4. create your service named "OpenOfficeUnoServer" or whatever you want as the name
    1. run "<Path>\INSTSRV.EXE OpenOfficeUnoServer <Path>\SRVANY.EXE" where <Path> is the Path to the Resource Kit Tools
  5. Edit the registry Keys :
    1. create a key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OpenOfficeUnoServer\Parameters
    2. add there an entry "AppDirectory" with a value of the installation directory of OpenOffice eg. "C:\Program Files\OpenOffice.org 2.0\program\"
    3. add an Entry "Application" with following Value "AppDirectory from step 2\soffice.exe -headless -accept=socket,host=0.0.0.0,port=9000;urp;"
    4. the port should correspond to the one in web.xml
  6. Disable the license dialog of OpenOffice
    1. edit <AppDirectory>\share\registry\data\org\openoffice\Setup.xcu (for OOo 3 <AppDirectory>\Basis\share\registry\data\org\openoffice\Setup.xcu) and replace
<prop oor:name="ooSetupInstCompleted">
  <value>false</value>
</prop>
<prop oor:name="ooSetupShowIntro">
  <value>true</value>
</prop>

with

<prop oor:name="ooSetupInstCompleted" oor:type="xs:boolean">
 <value>true</value>
</prop>
<prop oor:name="LicenseAcceptDate" oor:type="xs:string">
 <value>yyyy-MM-ddThh:mm:ss</value>
</prop>
<prop oor:name="FirstStartWizardCompleted" oor:type="xs:boolean">
 <value>true</value>
</prop>

where the timestamp should be later than the installation of OpenOffice

Image:eye.png Hint: If it doesn't work now it's a good tip to reboot your machine. Another tip is to look after a firewall blocking your requests.

64 Bit Vista

Replace step 3. and 4 with the command:

sc create "OpenOfficeUnoServer" start= auto binpath= "C:\<Path>\srvany.exe"
  • The spaces after "=" are not optional!
  • srvany.exe is part of the Windows Server 2003 Resource Kit Tools

Registry Example

  1. Image:OoReg01.png
  2. Image:OoReg02.png

Other Links

Personal tools