https://bugs.documentfoundation.org/show_bug.cgi?id=114458
--- Comment #2 from Leon <confidence0...@gmail.com> ---
I'm very glad to receive your email. I really appreciate.
I post my brief main code. I use C# to call the LibreOffice.exe to change my
file. But just keep running and I didn't see the any error message.
Here is my code below.
// Just use C# Process to execute the LibreOffice.exe
startInfo.FileName =
ConfigurationManager.AppSettings["LibreOfficeExePath"];
startInfo.WorkingDirectory = outputDir;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.Arguments = string.Format(" -headless -convert-to {1}
{0}", inputFilePath, extensionParameter);
startInfo.RedirectStandardError = true;
startInfo.RedirectStandardOutput = true;
startInfo.Verb = "runas";
using (Process exeProcess = Process.Start(startInfo))
{
var errorMessage = exeProcess.StandardError.ReadToEnd();
var streamMessage = exeProcess.StandardOutput.ReadToEnd();
File.AppendAllText(@"E:\BackUp\BackUpLog.txt",
$@"\r\n{errorMessage}\r\n{streamMessage}");
exeProcess.WaitForExit();
}
My program just keep waiting the LibreOffice.exe return some command.
This code ====> Process.Start(startInfo) into the LibreOffice.exe to change
file then never reach this code ====> exeProcess.WaitForExit();
I think my program doesn't receive any response, so just keep waiting for
LibreOffice.exe return some information.
This my problem I posted in stackoverflow but no one can fix this problem.
Please check this link. Hope you can get more information.
https://stackoverflow.com/questions/47824861/use-c-sharp-process-to-shift-the-file-to-odflibreoffice
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs