-
Notifications
You must be signed in to change notification settings - Fork 54
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
Porting this code from CHtmlView to WebView2 #871
Comments
Sorry, I don't have time to look over this whole code, though others on this forum may. If you have specific feature requests or blockers from trying to port this code please open new issues specific to those requests (and/or check if we already have issues tracking those requests). Thanks! |
@ajtruckle WebView2 is a complete departure from CHtmlView, there is no migration path, it's not possible. Unfortunately, (like all of us) you'll have to start wrestling it into submission ;-) |
Migration is possible. We have migrated än extremely complex application that previously embedded IE/WebBrowser in numerous places. Our path:
We had first proof of concept up and running in less than one week, about one year ago. And spent time on final details ever since. The only breaking change for our content is support for VBScript. |
Resolved the above using
This is not possible when the transformation files are local to the PC. Shame. At the moment I have to transform myself to HTML and then load that file. A valid workaround but would be nicer to just use the XML file path like I could in IE.
When you right-click the view there is "Inspect" which is about as good as we will get. So I guess this is OK.
I have this working using deprecated API (
This works (context menu and on demand) but it is limited to the bounds of the
Not yet found a way to do this.
To be reviewed. |
@ajtruckle Customised context menu API, is on it's way. |
Great! Concerning "View Page Source" ... on reflection ... browsers offer two distinct choices (page source / inspect). Microsoft Edge context menu includes both of these. And I can click my WebView2 and press CTRL + U to display the page source. So:
Also, can we programmatically trigger the View Page Source? |
@ajtruckle I assume the ContexMenu API will solve those three. Use the view-source: protocol e.g. Source="view-source:https://uk.yahoo.com" |
I'll investigate that, thanks. As for Page Setup - the current system lacks features. If we click the Print button (apart from teh size constraints to the webview2 object) we can click More Settings and the check box to include headers and footers. But there is no way to configure the text like you used to in IE PageSetup. |
Closing old questions - let me know if you think this should stay open. Thanks! |
@champnic It may be old but these issues are not resolved to my knowledge. I am still not using WebView2 because of these various issues. |
Reopening - thanks for the ping! There are a bunch of issues listed here, some of which have been resolved - would you mind sharing which ones are still blocking you? |
Off the top of my head:
All of those things to my knowledge can't be done yet with WebView2 and would cripple my application behaviour. It seems that the developers are thinking it just the terms of a browser and thus you will probably have it maximised anyway. But it is also being used as a control - so not always full screen. And this forcing the print preview to the confines of the browser makes it not useable. I have raised all of these things before and to my knowledge there have been no fixes for any of them??? |
This is currently available as an experimental API:
We are tracking better Find support in #1737
We have this tracked in the #1488 you opened. For the remaining print issues:
I don't think we have those captured yet. I'll move those to a dedicated Feature Request issue and then we can close this aggregate issue if that's ok with you. |
You are right though that we haven't done much in the print space overall, and for that I apologize, as it seems to be a big part of your application or at least continues to block you from using WebView2. |
Thanks for the links and creating the tickets so you can close the thread here. Yes, the browser control is what I use as my schedule display in my editor. See: |
Hi
If I am to consider moving over to
WebView2
then I need to be able to port this class over:This class is functional and works very well in my application.
I don't want loss of features for migrating to
WebView2
.Thanks for your time.
The text was updated successfully, but these errors were encountered: