вот мой код
string destinationFileWord = filePath;
Process print = new Process();
print.StartInfo.FileName = destinationFileWord;
print.StartInfo.UseShellExecute = true;
print.StartInfo.CreateNoWindow = true;
print.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
print.StartInfo.Verb = "PrintTo";
print.StartInfo.Arguments = Utility.GetAppSettings("PrinterSettings", "Address1");
print.StartInfo.WorkingDirectory = Path.GetDirectoryName(destinationFileWord);
print.Start();
if (print.HasExited == false)
{
print.WaitForExit(5000);
}
Приведенный выше код будет работать только в том случае, если LibreOffice Calc - мое приложение по умолчанию.Если это Microsoft Excel, то он будет продолжать загружаться.
кто-нибудь знает почему?