This sample connects to an OpenOffice and opens some documents

1. Install an openoffice. 
2. Start the office with the following parameter 
   out of the program directory.
   
   Windows :
   soffice -accept=socket,host=localhost,port=2002;urp;StarOffice.NamingService

   Unix :
   soffice '-accept=socket,host=localhost,port=2002;urp;StarOffice.NamingService'

   This lets the office accept on the localhost-port 2002.

   Alternatively, you can modify a configuration file.

   <officeinstall>/share/config/registry/org.openoffice.Office.Common.xml
   file and replace the Connection-tag 

   <Connection cfg:type="string"/> 
                       with 
   <Connection cfg:type="string">socket,host=localhost,port=2002;urp;StarOffice.NamingService</Connection> 

   Note : 
    In older versions, you have to modify the soffice.ini file :
     Connection=socket,host=localhost,port=2002;urp;StarOffice.NamingService
     
2. After starting the office, netstat -a | fgrep 2002 should signal,
   that the port is being listened to ). 

3. Building the example
   3.1 For users of the office development kit
      - Build this directory using gnumake
      - Make odkxxx/WINexample.out/bin your current directory
        (replace WIN by linux,solsparc for the other platforms).
      
   3.2 For users of the openoffice.org build environment
      - Install the binary output tree of the current build. 
      - Checkout (toplevel) the api/odk module from openoffice.org. 
      - Build the api/odk/examples/officeclient directory. 
      - Make the api/odk/wntmsci3/bin (on unix api/odk/unxsols3/lib) your current directory.
      - Copy from the global binary output tree the file wntmsci3/bin/applicat.rdb
        to the current directory as officeclient.rdb. 

9. Now execute the following : 
   Windows : 
   uno -l officeclientsample.dll -c com.sun.star.comp.odk.example.OfficeClientSample -rw officeclient.rdb -- uno:socket,host=localhost,port=2002;urp;StarOffice.NamingService 

   Unix : 
   uno -l libofficeclientsample.so -c com.sun.star.comp.odk.example.OfficeClientSample -rw officeclient.rdb -- 'uno:socket,host=localhost,port=2002;urp;StarOffice.NamingService' 

