Bootstrap.defaultBootstrap

asked 2015-12-17 22:41:20 +0200

Hi, i'm new to LibreOffice so excuse my lack of knowledge. I am moving away from OpenOffice and want to replace it with LibreOffice (LO)given i hear its a better platform.

So my question is related to getting LO working with some existing code a consultant had helped me on. In code from a consultant, he had the following lines which are throwing an error on line 4.

  1. Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP);
  2. // String sUnoIni = "file:///C:/Program Files (x86)/OpenOffice 4/program/uno.ini";
  3. String sUnoIni = "file:///C:/Program Files (x86)/LibreOffice 5/program/uno.ini";
  4. var localContext = Bootstrap.defaultBootstrap_InitialComponentContext(sUnoIni, null);

if i un-comment line 2 and comment line 3 my code works eventhough its calling OpenOffice...odd. I don't want to use OpenOffice so I'm not sure what the issue is.

the Error is : "External component has thrown an exception"

does anyone know how to fix this or where to look?

edit retag flag offensive close merge delete