microsoft / microsoft/WindowsAppSDK
Failed to Create the Print Dialog via PrintManagerInterop
Nobody has claimed this yet.
- 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
### 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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