Hi,
Sorry last week was dramatic, did not get much work done for anything.
It wasn't just that, although that was certainly enough, but not exactly a productive week.
Looking to see if I can reproduce the sizing issue is still on my to-do list.
Re. your questions.
Strange as it might be, Microsoft hasn't yet added an official API for printing yet.
As it is, they are rounding up the specs for implementing that.
https://github.com/MicrosoftEdge/WebView.../pull/2604
Right now your best bet on invoking a printer dialog is to do so via javascript.
eg.
ExecuteScript "window.print();"
Not ideal and I really hope that Microsoft gets their printing API in the WebView2 product soon as I can then also work on exposing that.
re. the keyboard OnKeyPress event.
That event is added by the ActiveX framework I'm using and probably shouldn't have been exposed.
The problem is that the WebView2 control is Out-Of-Process and has an In-Process front end.
So while you're typing in the -out of process- control, the -in process- front end doesn't get any of those events.
MS is changing that so that you can actually track these kind of things with the normal WindowHandle and from what I read here: https://github.com/MicrosoftEdge/WebView...issues/468
They are getting close to completion on that one.
Also see: https://github.com/MicrosoftEdge/WebView...issues/112
Can you tell me what you need to have those keyboard events for?
Perhaps there's another way to get what you need.
--
Wil
Sorry last week was dramatic, did not get much work done for anything.
It wasn't just that, although that was certainly enough, but not exactly a productive week.
Looking to see if I can reproduce the sizing issue is still on my to-do list.
Re. your questions.
Strange as it might be, Microsoft hasn't yet added an official API for printing yet.
As it is, they are rounding up the specs for implementing that.
https://github.com/MicrosoftEdge/WebView.../pull/2604
Right now your best bet on invoking a printer dialog is to do so via javascript.
eg.
ExecuteScript "window.print();"
Not ideal and I really hope that Microsoft gets their printing API in the WebView2 product soon as I can then also work on exposing that.
re. the keyboard OnKeyPress event.
That event is added by the ActiveX framework I'm using and probably shouldn't have been exposed.
The problem is that the WebView2 control is Out-Of-Process and has an In-Process front end.
So while you're typing in the -out of process- control, the -in process- front end doesn't get any of those events.
MS is changing that so that you can actually track these kind of things with the normal WindowHandle and from what I read here: https://github.com/MicrosoftEdge/WebView...issues/468
They are getting close to completion on that one.
Also see: https://github.com/MicrosoftEdge/WebView...issues/112
Can you tell me what you need to have those keyboard events for?
Perhaps there's another way to get what you need.
--
Wil