| page_type |
sample |
| languages |
|
| products |
|
| name |
Printing |
| urlFragment |
Printing |
| description |
Shows how to print WinUI 3 content with the Windows print experience. |
| extendedZipContent |
| path |
target |
LICENSE |
LICENSE |
|
|
This sample demonstrates how to print content from a WinUI 3 desktop app that
uses the Windows App SDK.

- Open the Windows print experience from a WinUI 3 window.
- Print basic text and images with
PrintDocument.
- Configure standard print options.
- Add a custom print option.
- Select a page range.
- Lay out and print a collection of photos.
- Disable print preview when an app cannot provide it.
- Run the sample as either a packaged or unpackaged app.
- Windows 10, version 1809 (build 17763), or later.
- Visual Studio with the .NET desktop development workload.
- Open
cs-winui\PrintingSample.sln in Visual Studio.
- Select an x86, x64, or ARM64 configuration.
- Select the
PrintingSample (Package) profile for packaged deployment or
the PrintingSample (Unpackaged) profile for unpackaged deployment.
- Build and run the solution.
- Select a scenario and choose Print to open the Windows print experience.