日期:2014-05-17  浏览次数:21089 次

C #如何判断打印机缺纸?
用C#写了个winform程序,连接的是USB端口的热敏pos打印机,(类似于超市打印小票的那种)。

怎么判断打印机里面是否还有纸。?
C# WinForm

------解决方案--------------------
  if (printQueue.IsBusy)
                    printStateText = "打印机正忙";
                else if (printQueue.IsDoorOpened)
                    printStateText = "打印机门被打开";
                else if (printQueue.IsInError)
                    printStateText = "打印机出错";
                else if (printQueue.IsInitializing)
                    printStateText = "打印机正在初始化";
                else if (printQueue.IsIOActive)
                    printStateText = "打印机正在与打印服务器交换数据";
                else if (printQueue.IsManualFeedRequired)
                    printStateText = "打印机出错";
                else if (printQueue.IsNotAvailable)
                    printStateText = "打印机状态信息不可用";
                else if (printQueue.IsTonerLow)
                    printStateText = "打印机墨粉用完";
                else if (printQueue.IsOffline)