Search code examples
c#system.printingprintqueue

System.Printing to return printqueue status - properties never return true


I'm using System.Printing to interrogate PrintQueue status - my aim being to obtain status updates & errors, specifically the booleans IsOutOfMemory, NeedUserIntervention, IsOutOfPaper, HasPaperProblem, IsPaperJammed, IsInError, IsPaused, IsBusy, IsPrinting, IsProcessing, IsInitializing, IsDoorOpened etc. The problem is the properties never return true, even when I know one is true. Has anyone had success with these properties? Anyone got any idea what might be wrong or missing here?

Thanks James


Solution

  • Well I guess you have to call the PrintQueue.Refresh method to update the properties.