dotnet / dotnet/dotnet-api-docs

QueueStatus is always PrintQueueStatus.None

Open
#832 1 comment 0 reactions 0 assignees View on GitHub
area-WPF dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Example is not clear.

I tried following code in a timer and then turn off printer, remove paper, turn on printer, remove tonner, open the door, etc and message box never popped!

PrintQueue queue = new LocalPrintServer().GetPrintQueue("printername");
queue.Refresh();
if (queue.QueueStatus!= PrintQueueStatus.None){
MessageBox.Show(queue.QueueStatus.ToString());
}

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: f4c74724-5616-d10d-131e-de78c46f8f47
* Version Independent ID: f76d77bb-75a9-8425-1268-37a3b2c5a84e
* Content: [PrintQueueStatus Enum (System.Printing)](https://docs.microsoft.com/en-us/dotnet/api/system.printing.printqueuestatus?view=netframework-4.7.2)
* Content Source: [xml/System.Printing/PrintQueueStatus.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Printing/PrintQueueStatus.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.