打印发票的问题? 在NT下不会自动的进纸,为什么?CSDN有高手在吗?delphi大富翁高手很多的. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Printer.PrinterIndex := Printer.PrinterIndex; Printer.GetPrinter(Device,Driver,Port,hDMode); if hDMode <> 0 then begin pDMode := GlobalLock(hDMode); if pDMode <> nil then begin{ pDMode^.dmPaperSize:=DMPAPER_USER; pDMode^.dmPaperLength:=Height * 10; pDMode^.dmPaperWidth:=Width * 10; } pDMode^.dmFields := pDMode^.dmFields or DM_FormName; Form1.Flags := FORM_BUILTIN; Form1.name := 'PrintFP'; Form1.Size.cx := 80; FOrm1.Size.cy := 137; if addform(Printer.handle,1,@Form1) then showmessage('ok') else showmessage('false'); pDMode^.dmFormName := 'Form1';{ pDMode^.dmFields:=pDMode^.dmFields or DM_PAPERSIZE; pDMode^.dmFields:=pDMode^.dmFields or DM_PAPERLENGTH; pDMode^.dmFields:=pDMode^.dmFields or DM_PAPERWIDTH;} pDMode^.dmFields := pDMode^.dmFields or DM_FormName; end; ResetDC(Printer.Handle,pDMode^); GLobalUnLock(hDMode); end; Printer.PrinterIndex := Printer.PrinterIndex; 问题现在明显了,是在NT下,如何自定义纸张的问题,在程序中如何处理?addform总返回False,如何处理?斑竹在吗?大侠们在吗?分数不够可以再加啊 恢复dmpagesize指的是nt下的纸张序号。 系统好象无法自定义纸张大小,看来只好直接用Printer API了。 一次最多只能散100?我的一些老问题 这个小项目怎么报价???谢谢 DBChar->Series[]的画线问题,急。 UdpSocket控件的使用 小问题急!!! 难,如何读取其它进程的内存数据? access的用户名密码是? 关于swflash.ocx控件的问题! 软件维护费用如何算起? ?**有请**? 坐台结账:为什么数据集不能刷新?系统说没有唯一的索引...TMD,我明明是建了索引的。但我发现其它现象-=>> delhpi中在oracle中如何根据日期查询?
Printer.GetPrinter(Device,Driver,Port,hDMode);
if hDMode <> 0 then
begin
pDMode := GlobalLock(hDMode);
if pDMode <> nil then
begin
{ pDMode^.dmPaperSize:=DMPAPER_USER;
pDMode^.dmPaperLength:=Height * 10;
pDMode^.dmPaperWidth:=Width * 10; }
pDMode^.dmFields := pDMode^.dmFields or DM_FormName;
Form1.Flags := FORM_BUILTIN;
Form1.name := 'PrintFP';
Form1.Size.cx := 80;
FOrm1.Size.cy := 137;
if addform(Printer.handle,1,@Form1) then
showmessage('ok')
else
showmessage('false');
pDMode^.dmFormName := 'Form1';
{ pDMode^.dmFields:=pDMode^.dmFields or DM_PAPERSIZE;
pDMode^.dmFields:=pDMode^.dmFields or DM_PAPERLENGTH;
pDMode^.dmFields:=pDMode^.dmFields or DM_PAPERWIDTH;}
pDMode^.dmFields := pDMode^.dmFields or DM_FormName;
end;
ResetDC(Printer.Handle,pDMode^);
GLobalUnLock(hDMode);
end;
Printer.PrinterIndex := Printer.PrinterIndex;
addform总返回False,如何处理?
斑竹在吗?大侠们在吗?
分数不够可以再加啊