Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternatives of old IE methods
#8
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
Reply


Messages In This Thread
Alternatives of old IE methods - by hsacrm - 2022-08-30, 07:34:20
RE: Alternatives of old IE methods - by wila - 2022-08-30, 10:17:06
RE: Alternatives of old IE methods - by Patrickb - 2022-11-03, 20:10:42
RE: Alternatives of old IE methods - by hsacrm - 2022-08-30, 13:05:33
RE: Alternatives of old IE methods - by wila - 2022-08-30, 17:12:07
RE: Alternatives of old IE methods - by hsacrm - 2022-08-31, 07:32:58
RE: Alternatives of old IE methods - by wila - 2022-08-31, 11:02:56
RE: Alternatives of old IE methods - by hsacrm - 2022-09-09, 14:00:43
RE: Alternatives of old IE methods - by wila - 2022-09-10, 17:45:32
RE: Alternatives of old IE methods - by hsacrm - 2022-09-12, 06:39:00
RE: Alternatives of old IE methods - by wila - 2022-09-12, 12:44:00
RE: Alternatives of old IE methods - by wila - 2022-09-13, 22:20:57
RE: Alternatives of old IE methods - by hsacrm - 2022-09-14, 13:01:42
RE: Alternatives of old IE methods - by wila - 2022-09-14, 14:02:43
RE: Alternatives of old IE methods - by wila - 2022-11-03, 21:02:38
RE: Alternatives of old IE methods - by Patrickb - 2022-11-15, 20:12:43
RE: Alternatives of old IE methods - by wila - 2022-11-15, 22:54:47
RE: Alternatives of old IE methods - by Patrickb - 2022-11-16, 15:41:16
RE: Alternatives of old IE methods - by wila - 2022-11-16, 16:08:59

Forum Jump:


Users browsing this thread: 1 Guest(s)