H
hpbj
Unregistered / Unconfirmed
GUEST, unregistred user!
为什么不能正确获得打印机的解析度?
如下:
uses Printers;
procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(inttostr(GetDeviceCaps(Printer.Handle, LOGPIXELSX)));
程序报错:[Error] printer.pas(40): Undeclared identifier: 'Handle'
为什么?
如下:
uses Printers;
procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(inttostr(GetDeviceCaps(Printer.Handle, LOGPIXELSX)));
程序报错:[Error] printer.pas(40): Undeclared identifier: 'Handle'
为什么?