microsoft / microsoft/WindowsAppSDK

The default Print UI dialogue is not shown on the Windows platform when the EntryPoint is set as "Windows.PartialTrustApplication" in Package.appxmanifest.

Open
#4,440 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-External bug elevation
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

### Describe the bug

The default Print UI dialogue is not shown on the Windows platform when the **EntryPoint** is set as **"Windows.PartialTrustApplication"** in **Package.appxmanifest**.

### Steps to reproduce the bug

1. Run the attached sample on a machine with a Windows platform.
2. Click the button to execute the associated functionality to open the default print dialogue of the Windows platform.
3. Observe that the application does not show the Print preview dialogue.

[App1.zip](https://github.com/microsoft/microsoft-ui-xaml/files/15233197/App1.zip)

### Expected behavior

When the **EntryPoint** is set as **"$targetentrypoint$"** in **Package.appxmanifest**, it displays the default Print UI dialogue correctly in the Windows platform. However, when the **EntryPoint** is changed to **"Windows.PartialTrustApplication"** in **Package.appxmanifest**, the print dialogue is not shown. The print dialogue should be displayed properly.

### Screenshots

_No response_

### NuGet package version

None

### Windows version

Windows 10

### 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

Run the attached App1.zip sample on Windows 10 and inspect Package.appxmanifest, comparing the "$targetentrypoint$" and "Windows.PartialTrustApplication" EntryPoint values. Reproduce the print action and determine why the default Print preview dialogue appears for one setting but not the other. Done means the default Print UI dialogue is displayed correctly with Windows.PartialTrustApplication.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.