请教﹕如何获取Excel文件用户定义的纸张尺寸大小﹖
特别是自定义纸张大小﹗
nPaperWidth := GetDeviceCaps(Printer.Handle, PHYSICALWIDTH) div GetDeviceCaps
(Printer.Handle, LOGPIXELSX) * 254;
nPaperHeight := GetDeviceCaps(Printer.Handle, PHYSICALHEIGHT) div GetDeviceCaps
(Printer.Handle, LOGPIXELSY) * 254;
上面的写法为什么会提示﹕
Incompatible types: 'HDC' and 'QPaintDeviceH'
GetDeviceCaps后面的参数该如何带?