Sep 04 2019 09:02 PM
Hi, does Edge team have plans to provide/expose an API to control printing functionality, something similar to Internet Explorer Print Templates and IDM_PRINT etc commands?
Sep 08 2019 08:59 AM
@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
Sep 08 2019 01:22 PM
@Elliot Kirk Thanks! That'd be a very useful feature for corporate applications that IE always has had, unlike Chrome.
Sep 18 2019 09:33 AM
@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.
Sep 18 2019 03:21 PM
@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 IE Print Templates. There's nothing like that in Edge. I suppose we'll have to pursue other options like PDF.
Sep 18 2019 03:50 PM
@noseratio if there is something you need that window.open() cannot provide, we're definitely open to take that feedback and look into supporting it. Specifically about templates, @media (https://developer.mozilla.org/en-US/docs/Web/CSS/@media) is a potential way to programmatically style your printing.