Add Pdf.Display, Rename ActiveMemberInput

This commit is contained in:
2023-03-05 00:35:55 +01:00
parent 4c8f6e8cdc
commit 342c7b92bd
4 changed files with 36 additions and 14 deletions

View File

@ -30,5 +30,12 @@ namespace WGneu.Print {
await page.WaitForFunctionAsync("() => window.finished");
await page.PdfAsync(path_pdf);
}
public static void Display(string path) {
Process.Start(new ProcessStartInfo() {
FileName = path,
UseShellExecute = true,
});
}
}
}

View File

@ -12,10 +12,7 @@ namespace WGneu.Print {
public static async void Test() {
await Pdf.Convert(ROOT + "din-5008.html", ROOT + "test.pdf");
Process.Start(new ProcessStartInfo() {
FileName = ROOT + "test.pdf",
UseShellExecute = true,
});
Pdf.Display(ROOT + "test.pdf");
}
}
}