Forum Discussion
Printing API for Desktop apps hosting Edge's WebView
noseratio, I have sent an email asking the team that own this what their plans are. I will respond back when I hear something. Thanks - Elliot
- noseratioSep 08, 2019Brass Contributor
Elliot Kirk Thanks! That'd be a very useful feature for corporate applications that IE always has had, unlike Chrome.
- liminzhuSep 18, 2019
Microsoft
noseratio thanks for bringing this up! Today we support printing in WebView2 (I assume you're asking about this - https://aka.ms/webview) through calling the web API `window.print()`. See similar issue and code sample on GitHub - https://github.com/MicrosoftEdge/WebViewFeedback/issues/7#issuecomment-505971520, and let me know if this works for you.
- noseratioSep 18, 2019Brass Contributor
liminzhu thanks for replying. Unfortunately, window.print() is so much less than Internet Explorer's WebBrowser hosting has to offer for printing. With IE, we had full control over pagination etc with https://technet.microsoft.com/en-us/aa753280(v=vs.90). There's nothing like that in Edge. I suppose we'll have to pursue other options like PDF.