microsoft / microsoft/WindowsAppSDK

Failed to Create the Print Dialog via PrintManagerInterop

Open
#5,725 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Windowing needs-triage
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

### Describe the bug

When i was just trying to Show Dialog. (Just to show dialog, not initialize the preview elements). This error happened.

### Steps to reproduce the bug

1. Create a Winui 3 Packaged app (C#).
2. Make it Unpackaged.
3. Create a function to show the dialog via PrinterManagerInterop method.
4. You'll get the error.

### Expected behavior

I want this function, show the print dialog, but i've just got this exception.

### Screenshots

Image

### NuGet package version

Windows App SDK 1.7.3: 1.7.250606001

### Packaging type

Unpackaged

### Windows version

Windows 11 version 24H2 (26100, June 2025 Update)

### IDE

Visual Studio 2022

### Additional context

_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.

Research direction

Start by reproducing the PrintManagerInterop dialog call in an unpackaged WinUI 3 C# app, using Windows App SDK 1.7.3 on Windows 11 24H2, and inspect the exception shown in the attached screenshot. Done means identifying the cause and enabling the print dialog to open without requiring preview initialization.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.