Description
Describe the feature/enhancement you need
At the moment, there doesn't appear to be a way to disable header and footer printing or to set the header and footer unless calling the PrintToPdfAsync(String, CoreWebView2PrintSettings) method, if printing is instigated from another method or from JavaScript, then there is no way to pre-set printing options.
If support for CoreWebView2PrintSettings was added globally, then printing preferences could be set before printing, no matter what the calling route for printing (i.e. CoreWebView2 method or JavaScript). In addition some additional properties which would allow you to prevent user changing of some print settings would be helpful in some scenarios.
The scenario/use case where you would use this feature
When displaying a local file, e.g. a HTML based report, I would use this feature to turn off printing of headers and footers, especially the URI in the footer, when printing from JavaScript. This would make the report print out more visually appealing/professional and reduce paper/ink waste.
How important is this request to you?
Impactful. My app's user experience would be significantly compromised without it.
Suggested implementation
No response
What does your app do? Is there a pending deadline for this request?
No response