本人代码如下:
Device:array[0..255] of Char;
Driver:array[0..255] of Char;
Port:array[0..255] of Char;
hDeviceMode:THandle;
pDeviceMode:PDevMode;
begin
Printer.PrinterIndex:=Printer.PrinterIndex;
Printer.GetPrinter(Device,Driver,Port,hDeviceMode);
pDeviceMode:=GlobalLock(hDeviceMode);
pDeviceMode.dmPaperSize:=DMPAPER_A4;
pDeviceMode.dmOrientation:=DMDUP_VERTICAL;
GlobalUnLock(hDeviceMode);
end;
程序编译通过,手动把打印机设置改为A5和横向打印后,运行程序后还是原设置,没有改为A4和纵向打印。请各位高手帮我看看好吗?
很急!希望大家帮忙噢!
Device:array[0..255] of Char;
Driver:array[0..255] of Char;
Port:array[0..255] of Char;
hDeviceMode:THandle;
pDeviceMode:PDevMode;
begin
Printer.PrinterIndex:=Printer.PrinterIndex;
Printer.GetPrinter(Device,Driver,Port,hDeviceMode);
pDeviceMode:=GlobalLock(hDeviceMode);
pDeviceMode.dmPaperSize:=DMPAPER_A4;
pDeviceMode.dmOrientation:=DMDUP_VERTICAL;
GlobalUnLock(hDeviceMode);
end;
程序编译通过,手动把打印机设置改为A5和横向打印后,运行程序后还是原设置,没有改为A4和纵向打印。请各位高手帮我看看好吗?
很急!希望大家帮忙噢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货