Open firai opened 2 months ago
Hi!
I tried a few years ago, but found that I will loose the print preview functionality that I can access on the WebBrowser control. Having that engineers would hardly use some fancy CSS formatting, I finally decided to get the WebBrowser back. I think most users would prefer to have print preview. Do you know how to display a print preview dialog on WebView2?
I know that the Edge print preview dialog may not be the best because it's shown an overlay within the control, but you should be able to show a print preview with the browser print dialog (CoreWebView2.ShowPrintUI
(
CoreWebView2PrintDialogKind.Browser
)
) rather than the system dialog. There seems to be a known issue where printing from Edge/Webview2 using the system dialog doesn't show a preview.
The output pane currently seems to use the WebBrowser control, which is still Internet Explorer under the hood. This means that modern CSS selectors aren't supported and the IE formatting quirks still apply. Can you consider migrating to WebView2 instead, which is based on Edge/Chromium?