Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace WebBrowser with WebView2 #350

Open
firai opened this issue Sep 4, 2024 · 2 comments
Open

Replace WebBrowser with WebView2 #350

firai opened this issue Sep 4, 2024 · 2 comments

Comments

@firai
Copy link

firai commented Sep 4, 2024

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?

@Proektsoftbg
Copy link
Owner

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?

@firai
Copy link
Author

firai commented Sep 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants