Page 1 of 1

showPrintUI

Posted: Wed Dec 07, 2022 1:16 am
by 312684696
in github code,

Code: Select all

webView2_15->ShowPrintUI(printDialogKind)
https://github.com/MicrosoftEdge/WebView2Feedback/pull/2604/files#diff-9b5469f16f89f612e57b016fe9c040f7982e152235a0edd73c234c9d704a961a

No corresponding function found in web4delphi project

Re: showPrintUI

Posted: Wed Dec 07, 2022 8:46 am
by salvadordf
Hi,

That method is not present in the stable version of the WebView2 API at this moment (1.0.1462.37).

That link shows some code that uses a ICoreWebView2_15 interface which apparently includes methods like "Print" and "ShowPrintUI" but the current stable WebView2 API doesn't have those methods :
https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_15?view=webview2-1.0.1462.37

I guess Microsoft might decide to include those methods in ICoreWebView2_16 in the future.

PS : I don't work for Microsoft nor Google so the last comment is pure speculation.

Re: showPrintUI

Posted: Wed Dec 07, 2022 9:07 am
by salvadordf
You can track the development of that feature request here :
https://github.com/MicrosoftEdge/WebView2Feedback/issues/1331

Re: showPrintUI

Posted: Thu Dec 08, 2022 1:51 am
by 312684696
OK