Hi All,
I am converting my office files to pdf using Libreoffice and on my local machine it works using the version 6.0.6. I’m pushing the current c# code to a test server and have configured the latest version of Libreoffice 6.1.4
The C# code is just a process which has arguments and calls the soffice.exe with these args
as shown below, but I can’t seem to start the process using the code now and I tested the arguments manually which seemed to work perfectly, Do I need admin rights for soffice:
proc.StartInfo.FileName = dictionary["PATH_TO_LIBREOFFICE"];
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.RedirectStandardError = true;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.Arguments = arguments;
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
proc.ErrorDataReceived += (sender, args) => error.Append(args.Data);
proc.OutputDataReceived += (sender, args) => output.Append(args.Data);
proc.Start();
proc.BeginOutputReadLine();
proc.BeginErrorReadLine();
proc.WaitForExit();