C# 获取打印机状态-缺纸等信息

更新时间:2024-03-12 04:35:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

C# 获取打印机状态-缺纸等信息

using System.Printing; PrintQueue pq = LocalPrintServer.GetDefaultPrintQueue(); switch (pq.QueueStatus) { //处于节

能状态 case PrintQueueStatus.PowerSave: break; //处于错误状态 case PrintQueueStatus.ServerUnknown:

break; //打印机上的门已打开 case PrintQueueStatus.DoorOpen: break; //打印机无可用内存 case

PrintQueueStatus.OutOfMemory: break; case PrintQueueStatus.UserIntervention:

break; case PrintQueueStatus.PagePunt: break; //打印机墨粉已用完

case PrintQueueStatus.NoToner: break; case PrintQueueStatus.TonerLow: break; case PrintQueueStatus.WarmingUp:

break; case PrintQueueStatus.Initializing: break; case PrintQueueStatus.Processing:

break; case PrintQueueStatus.Waiting: break; case PrintQueueStatus.NotAvailable:

break; case PrintQueueStatus.OutputBinFull:

break; case PrintQueueStatus.Busy: break; case PrintQueueStatus.IOActive: break; case PrintQueueStatus.Offline: break; case PrintQueueStatus.PaperProblem:

break; case PrintQueueStatus.ManualFeed: break; //打印机缺纸

case PrintQueueStatus.PaperOut: break; //打印机卡纸 case

PrintQueueStatus.PaperJam: break; case PrintQueueStatus.PendingDeletion:

break; case PrintQueueStatus.Paused: break; case PrintQueueStatus.None: break; case PrintQueueStatus.Printing:

break; case PrintQueueStatus.Error: break; default: break; }

本文来源:https://www.bwwdw.com/article/h0s8.html

Top