W
warket
Unregistered / Unconfirmed
GUEST, unregistred user!
很多人在编写打印程序时总是很烦要考虑不同打印机地不同地分辨率,其实不用,可以用这样地
方法,比如要在A4纸上打印一个2*3厘米地方框,var ws,hs:real
ws:=printer.canvas.pagewidth/21;
hs:=printer.canvas.pageheight/29;
printer.canvas.retangle(0,0,trunc(2*ws),trunc(3*hs))
方法,比如要在A4纸上打印一个2*3厘米地方框,var ws,hs:real
ws:=printer.canvas.pagewidth/21;
hs:=printer.canvas.pageheight/29;
printer.canvas.retangle(0,0,trunc(2*ws),trunc(3*hs))