PrintQueue::HasPaperProblem Property
.NET Framework (current version)
Gets a value that indicates if the printer is having an unspecified paper problem.
Assembly: System.Printing (in System.Printing.dll)
Property Value
Type: System::Booleantrue if there is an unspecified paper problem; otherwise, false.
If the printer does not support a signal with this meaning, then the property is always false.
The PrintQueue object also has IsPaperJammed and IsOutOfPaper properties.
The following example shows how to use this property as part of a survey all printers for possible error status.
internal: // Check for possible trouble states of a printer using its properties static void SpotTroubleUsingProperties (System::String^% statusReport, System::Printing::PrintQueue^ pq) { if (pq->HasPaperProblem) { statusReport = statusReport + "Has a paper problem. "; } if (!(pq->HasToner)) { statusReport = statusReport + "Is out of toner. "; } if (pq->IsDoorOpened) { statusReport = statusReport + "Has an open door. "; } if (pq->IsInError) { statusReport = statusReport + "Is in an error state. "; } if (pq->IsNotAvailable) { statusReport = statusReport + "Is not available. "; } if (pq->IsOffline) { statusReport = statusReport + "Is off line. "; } if (pq->IsOutOfMemory) { statusReport = statusReport + "Is out of memory. "; } if (pq->IsOutOfPaper) { statusReport = statusReport + "Is out of paper. "; } if (pq->IsOutputBinFull) { statusReport = statusReport + "Has a full output bin. "; } if (pq->IsPaperJammed) { statusReport = statusReport + "Has a paper jam. "; } if (pq->IsPaused) { statusReport = statusReport + "Is paused. "; } if (pq->IsTonerLow) { statusReport = statusReport + "Is low on toner. "; } if (pq->NeedUserIntervention) { statusReport = statusReport + "Needs user intervention. "; } // Check if queue is even available at this time of day // The following method is defined in the complete example. ReportAvailabilityAtThisTime(statusReport, pq); };
.NET Framework
Available since 3.0
Available since 3.0
Show: