使用delphi如何讀取列印機的狀態,如缺紙、缺墨、忙等等。網上找了很多代碼,都不能用。
uj5u.com熱心網友回復:
http://blog.csdn.net/delphi308/article/details/9877043uj5u.com熱心網友回復:
這里面的方法只對WIN95有用,貌似沒什么用處吧。
uj5u.com熱心網友回復:
印象中Delphi封裝了一個TPrinter的類,里面應該有相關的代碼
另外還有一種辦法是打電話去問列印機的廠家技術售后,問他們提供了介面沒有
uj5u.com熱心網友回復:
應該可以,在 tptinter類 中 類似于 脫機。暫停列印,這些uj5u.com熱心網友回復:
應該可以,在 tptinter類 中 類似于 脫機。暫停列印,這些
public
constructor Create;
destructor Destroy; override;
procedure Abort;
procedure BeginDoc;
procedure EndDoc;
procedure NewPage;
procedure GetPrinter(ADevice, ADriver, APort: PChar; var ADeviceMode: THandle);
procedure SetPrinter(ADevice, ADriver, APort: PChar; ADeviceMode: THandle);
procedure Refresh;
property Aborted: Boolean read FAborted;
property Canvas: TCanvas read GetCanvas;
property Capabilities: TPrinterCapabilities read FCapabilities;
property Copies: Integer read GetNumCopies write SetNumCopies;
property Fonts: TStrings read GetFonts;
property Handle: HDC read GetHandle;
property Orientation: TPrinterOrientation read GetOrientation write SetOrientation;
property PageHeight: Integer read GetPageHeight;
property PageWidth: Integer read GetPageWidth;
property PageNumber: Integer read FPageNumber;
property PrinterIndex: Integer read GetPrinterIndex write SetPrinterIndex;
property Printing: Boolean read FPrinting;
property Printers: TStrings read GetPrinters;
property Title: string read FTitle write FTitle;
end;
這些是TPrinter的屬性和方法,沒有找到關于狀態的。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/66190.html
上一篇:難度,關于解密的問題
下一篇:TMS控制元件中AdvStringGrid的問題HideRow后,再用GetCheckBoxState得到的狀態不對
