PrintQueue::IsOutOfMemory Property
.NET Framework (current version)
Gets a value that indicates whether the printer is out of memory.
Assembly: System.Printing (in System.Printing.dll)
If the printer does not support a signal with this meaning, then the property is always false.
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: