XPS document fails to print some content on Windows 11

Symptoms

You have a Windows 11 installation where you print an XPS file to a printer. Printing fails or some content is not being printed. Doing the same on a Windows 10 device works fine.

Cause

An Access violation exception happens in the XpsRasterService.dll when using the PrintQueueStream from .NET.

Resolution

Download the Windows 11 update: September 20, 2022—KB5017383 (OS Build 22000.1042) Preview.

Fixed a known issue that affects XML Paper Specification (XPS) viewers. This might stop you from opening XPS files in some non-English languages. These include some Japanese and Chinese character encodings. This issue affects XPS and Open XPS (OXPS) files.

See also