diff --git a/Elwig/Helpers/Printing/Pdf.cs b/Elwig/Helpers/Printing/Pdf.cs index 3dad611..c63e0b7 100644 --- a/Elwig/Helpers/Printing/Pdf.cs +++ b/Elwig/Helpers/Printing/Pdf.cs @@ -33,12 +33,13 @@ namespace Elwig.Helpers.Printing { FileName = WinziPrint, CreateNoWindow = true, UseShellExecute = false, + RedirectStandardOutput = true, } }; p.StartInfo.ArgumentList.Add("-D"); p.StartInfo.ArgumentList.Add("-d"); p.StartInfo.ArgumentList.Add(App.TempPath); p.Start(); - await Task.Delay(2000); + await p.StandardOutput.ReadLineAsync(); WinziPrintProc = p; evtHandler?.Invoke(); } diff --git a/Installer/Files/WinziPrint.exe b/Installer/Files/WinziPrint.exe index 09009af..9977331 100644 Binary files a/Installer/Files/WinziPrint.exe and b/Installer/Files/WinziPrint.exe differ