Printing/Pdf: Wait for WinziPrint to be ready
This commit is contained in:
@ -33,12 +33,13 @@ namespace Elwig.Helpers.Printing {
|
|||||||
FileName = WinziPrint,
|
FileName = WinziPrint,
|
||||||
CreateNoWindow = true,
|
CreateNoWindow = true,
|
||||||
UseShellExecute = false,
|
UseShellExecute = false,
|
||||||
|
RedirectStandardOutput = true,
|
||||||
} };
|
} };
|
||||||
p.StartInfo.ArgumentList.Add("-D");
|
p.StartInfo.ArgumentList.Add("-D");
|
||||||
p.StartInfo.ArgumentList.Add("-d");
|
p.StartInfo.ArgumentList.Add("-d");
|
||||||
p.StartInfo.ArgumentList.Add(App.TempPath);
|
p.StartInfo.ArgumentList.Add(App.TempPath);
|
||||||
p.Start();
|
p.Start();
|
||||||
await Task.Delay(2000);
|
await p.StandardOutput.ReadLineAsync();
|
||||||
WinziPrintProc = p;
|
WinziPrintProc = p;
|
||||||
evtHandler?.Invoke();
|
evtHandler?.Invoke();
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user