question

teknofunk-8598 avatar image
0 Votes"
teknofunk-8598 asked ·

[UWP] Is there no UWP WebView API for printing formatted content?

Microsoft wants us to build apps for the Microsoft Store, and provides lot of great tools to do so. That being said, why is such an obvious use case still ignored? Other major app platforms have an API available, and Edge browser does have a print function that even pays attention to CSS media queries for formatting and pagination. Using a WebViewBrush in UWP to create an screenshot of the screen-formatted content does not make the situation much better. I would assume that the reasons are not related to any platform limitation. Perhaps there is a reason related to security? Does anyone have any information about this?

windows-uwp
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, does the following reply help?

0 Votes 0 · ·

Hi, is there any update?

0 Votes 0 · ·

Hi, do you have other questions?

0 Votes 0 · ·

1 Answer

FayWang-MSFT avatar image
0 Votes"
FayWang-MSFT answered ·

Hello,​

Welcome to our Microsoft Q&A platform!

I searched the UWP document about this and found UWP does not have such API that can directly print the WebView. The current approach is still to use the WebViewBrush. But if you have an idea about printing the WebView, you can go to Feedback Hub(Start menu-> Feedback Hub) to submit your feature request.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Wow. This is really embarrassing. How can we possibly compete as developers on the Windows Platform without a sufficient API for printing to from a WebView. This has left my app that I was preparing to release, un-releasable. Shame on Microsoft...

0 Votes 0 · ·