gz
gz
gz
gz
gz

解决方案 »

  1.   

    没有用,我已经试过了,我查询GETPRINTER API函数它的结构2中好象有此判断,但不知道怎摸使用,请高手相助?
      

  2.   

    function TestPrinterStatus(LPTPort: word): byte; 
    var 
      Status: byte; 
      CheckLPT: word; 
    begin 
      Status := 0; 
      if (LPTPort >= 1) and (LPTPort <= 3) then 
        begin 
          CheckLPT := LPTPort -1; 
          asm 
            mov dx, CheckLPT; 
            mov al, 0; 
            mov ah, 2; 
            int 17h; 
            mov &Status, ah; 
          end; 
        end; 
      Result := Status; 
    end; 
    Pass in the LPT port number you want to check & get the following back: 
    01h - Timeout 
    08h - I/O Error 
    10h - Printer selected 
    20h - Out of paper 
    40h - Printer acknowledgement 
    80h - Printer not busy (0 if busy)
    该函数不能工作于NT下。:-)  .
    I hope it can help you!
      

  3.   

    LPT的我没有试过,我想知道USB打印机怎么样