除了可以判断打印机是否缺纸外,还可以知道以下状态:
复制内容到剪贴板
代码:
var STATUS_PAUSED = 0x00000001; //打印暂停中
var STATUS_ERROR = 0x00000002; // 打印出错!
var STATUS_PENDING_DELETION = 0x00000004; // 打印机正在被删除,这种情况很少见噢
var STATUS_PAPER_JAM = 0x00000008; //卡纸
var STATUS_PAPER_OUT = 0x00000010; //缺纸
var STATUS_MANUAL_FEED = 0x00000020; //处于手工加纸模式
var STATUS_PAPER_PROBLEM = 0x00000040; //打印纸出现问题
var STATUS_OFFLINE = 0x00000080; //无法连接打印机
var STATUS_IO_ACTIVE = 0x00000100; //IO繁忙
var STATUS_BUSY = 0x00000200; //打印机繁忙
var STATUS_PRINTING = 0x00000400; //正在打印
var STATUS_OUTPUT_BIN_FULL = 0x00000800; //打印输出纸盒已满
var STATUS_NOT_AVAILABLE = 0x00001000; //打印机不可用
var STATUS_WAITING = 0x00002000; //打印等待中
var STATUS_PROCESSING = 0x00004000; //处理中
var STATUS_INITIALIZING = 0x00008000; //正在初始化
var STATUS_WARMING_UP = 0x00010000; //正在预热
var STATUS_TONER_LOW = 0x00020000; //打印机墨粉不足
var STATUS_NO_TONER = 0x00040000; //打印机没有墨粉
var STATUS_PAGE_PUNT = 0x00080000; //不能打印当前页
var STATUS_USER_INTERVENTION = 0x00100000; //打印机有问题,需要人工解决
var STATUS_OUT_OF_MEMORY = 0x00200000; //打印内存溢出
var STATUS_DOOR_OPEN = 0x00400000; //打印机的门是开着的,请关闭
var STATUS_SERVER_UNKNOWN = 0x00800000; //未知状态
var STATUS_POWER_SAVE = 0x01000000; //打印机处于省电模式