print issue in WPF .net core 3.1 on Windows 8.1
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
* .NET Core Version: 3.1
* Windows version: (`winver`) 8.1
* Does the bug reproduce also in WPF for .NET Framework 4.8?: No
* Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? No If yes, please file the issue via the instructions [here](https://docs.microsoft.com/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2019).
* Security issues and bugs should be reported privately, learn more via our [responsible disclosure guidelines](https://github.com/dotnet/wpf/blob/master/README.md#reporting-security-issues-and-security-bugs).
**Problem description:**
I created a sample WPF application in .NET Core 3.0 with below printed code. It just works fine in Windows 10 but not working in Windows 8.1. It is not giving any error either and hangs the application. Same code works in .NET Framework standard previous version without any issue even in Windows 8.1.
Sample code:
Please advise how to fix it in windows 8.1 .Net Core 3.1.
**Actual behavior:**
It is not giving any error either and hangs the application.
**Expected behavior:**
It should print the control and should not hang. Adding the error message in the attachment.

**Minimal repro:**
Create a button and click on Print button. Click event code is below:
private void Button_Click(object sender, RoutedEventArgs e)
{
PrintDialog printdialog = new PrintDialog();
printdialog.PrintVisual(this, "My first print job");
}
Contributor guide
Assessment
This issue has not been assessed yet.