依
依然寻梦
Unregistered / Unconfirmed
GUEST, unregistred user!
本人用的函数如下:(printview为Tpanel对象)
setmapmode(printview.canvas.handle,MM_isotropic);
setwindowextex(printview.canvas.handle,printer.pagewidth,printer.pageheight,nil);
setviewportextex(printview.canvas.handle,printview.width,printview.height,nil);
setviewportorgex(printview.canvas.handle,0,0,nil);
setmapmode(printview.canvas.handle,MM_isotropic);
setwindowextex(printview.canvas.handle,printer.pagewidth,printer.pageheight,nil);
setviewportextex(printview.canvas.handle,printview.width,printview.height,nil);
setviewportorgex(printview.canvas.handle,0,0,nil);