使用delphi如何读取打印机的状态,如缺纸、缺墨、忙等等。网上找了很多代码,都不能用。
解决方案 »
- 请教象素问题?
- 讨论,多个客户端连接一监听服务程序,客户端数量较多,如何解决数据库连接问题??
- 这个SQL语句该如何写
- 有关USB口编程问题
- 大量delphi商业源码,编程资料,免费下载,欢迎拍砖!
- “ D2D1D4D8BFCD000D000A”为:“已载客”但是我不知道如何进行编码和汉字的转换????
- 一个视频项目
- 对于程序员来说,什么样的项目经理才算是好的领头人呢?
- 请问在DELPHI中如何访问注册表并返回特定的项值,到一文本框,谢谢!如果修改呢?
- INTERBASE数据库打包后,为什么会产生错误?
- IDHTTP GET提交数据失败
- TMS控件中AdvStringGrid的问题HideRow后,再用GetCheckBoxState得到的状态不对
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的属性和方法,没有找到关于状态的。