Printing XPS files fails on Windows 8.1 #2106
Labels
Bug
Product bug (most likely)
regression
status: This issue is a regression from a previous build or release
Milestone
Hi everyone,
I'm using .NET Core 3 to print XPS files. The code I have is simple and working perfectly on Windows 7 and Windows 10, but it fails on Windows 8.1 (multiple machines, both 32-bit and 64-bit).
I've tried a number of different variations of the printing code, but here's a simple example:
This code works perfectly on Windows 7 and Windows 10, but on Window 8.1 I always get the following exception:
I don't see any problems with the code, and the exact same code is actually working on Windows 8.1 if I use it in the full .NET Framework!! So this looks like a bug in .NET Core 3 (specifically on Windows 8.1).
Also note that I've really tried many variations of the printing code (including PrintDialog.PrintVisual, PrintQueue.AddJob, XpsDocumentWriter.Write, XpsDocumentWriter.WriteAsync, creating the XpsDocument in memory instead of from a file, ...), but none of them worked on Windows 8.1 and I always get similar exceptions, for example:
This issue seems to be related to issue 597 (#597). this appears to be the exact same problem, however issue 597 was closed and marked as fixed.
If I execute the exact same code as the author of issue 597 (i.e. "PrintQueue.CreateXpsDocumentWriter(LocalPrintServer.GetDefaultPrintQueue()).Write(visual);"), I get the exact exception he got:
Is it possible that the fix for issue 597 isn't working on Windows 8.1 for some reason?
The text was updated successfully, but these errors were encountered: