Search code examples
c#windowslibreofficeunoconv

LibreOffice Stopped working , while converting XLS to XHTML files using C# application


enter image description here

In this, my queries are,

  • How to handle LibreOffice Exceptions in C#.
  • If could not handle , how to pro-grammatically close this exception or to suppress this exception popup, while excuting console
    • OR any better solution, that my conversion process , should not stop because of unhandle exception caused by Libre Office.

Solution

  • Firstly, thank you all for your kind help.. :). Finally i resolved.

    While bulk file conversion , my c# process, was getting interrupted , because of some exception occurred in LibreOffice process(soffice). so i started killing my c# process and its child processes and also killed soffice. So for next file, fresh soffice is getting created , as i executed unoconv command.

    but still, i get the exception popup, but the c# process , keeps continue.. this code helped me