用API:DeviceCaabilities The DeviceCapabilities function retrieves the capabilities of a printer device driver. DWORD DeviceCapabilities( LPCTSTR pDevice, // pointer to a printer-name string LPCTSTR pPort, // pointer to a port-name string WORD fwCapability, // device capability to query LPTSTR pOutput, // pointer to the output CONST DEVMODE *pDevMode // pointer to structure with device data );
The DeviceCapabilities function retrieves the capabilities of a printer device driver. DWORD DeviceCapabilities( LPCTSTR pDevice, // pointer to a printer-name string
LPCTSTR pPort, // pointer to a port-name string
WORD fwCapability, // device capability to query
LPTSTR pOutput, // pointer to the output
CONST DEVMODE *pDevMode // pointer to structure with device data
);
但label1却什么也没显示
label1.caption:=Printer.Printers[printer.printerindex];
dancemaple(枫之舞) 说的也许有理。
看看就知道了
delphi5开发人员指南 黄色封面 机械工业出版社,( 292 页 )
正本书约厚 5公分.^-^
还讲述了有关delphi这部分的封装的问题。