MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Feature]: Add support global print settings

Open
#5,223 0 comments 1 reaction 1 assignee View on GitHub

@Lakshmisha-KS is already working on this.

Since Apr 30, 2025.

feature request
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.