私の開発マシンでは、すべてが機能しています。しかし、サーバーで試してコードから起動すると、OpenOfficeはポート2002に接続できません。まったく同じコマンドでcmdから起動すると、動作します....
私は何を間違っていますか?
コマンド コマンド
c:/openoffice/program/soffice.exe -headless -nologo -nofirststartwizard -norestore -accept=socket,host=localhost,port=2002;urp;StarOffice.Service
コードから
var info = new ProcessStartInfo("c:/openoffice/program/soffice.exe")
{
UseShellExecute = false,
RedirectStandardInput = true,
RedirectStandardOutput = true,
RedirectStandardError = true,
Arguments = "-headless -nologo -nofirststartwizard -norestore -accept=socket,host=localhost,port=2002;urp;StarOffice.Service"
};
var result = Process.Start(info);