谁能告诉我红色部分的数值是什么意思啊,谢谢!
canvas.TextRect(Rect(180,490,pagewidth-180,pageheight-490),180,490,memo1.LineS.Text);

解决方案 »

  1.   

    rect是个函数:function Rect(Left, Top, Right, Bottom: Integer): TRect;Call Rect to create a TRect that represents the rectangle with the specified coordinates. Use Rect to construct parameters for functions that require TRect, rather than setting up local variables for each parameter.PageWidth,pageheight:是TPrinter或TPageSetupDialog的属性,看字面也能知道是页的宽与高
      

  2.   

    with printer do
       begin
         beginDoc;
         canvas.TextRect(Rect(180,490,pagewidth-180,
                pageheight-490),180,490,memo1.LineS.Text);
         canvas.TextRect(Rect(180,530,pagewidth-180,
                pageheight-530),180,530,memo2.LineS.Text);
         canvas.TextRect(Rect(0,40,pagewidth-0,
                pageheight-40),0,40,memo3.LineS.Text);
         canvas.TextRect(Rect(0,80,pagewidth-0,
                pageheight-80),0,80,memo4.LineS.Text);
         canvas.TextRect(Rect(0,160,pagewidth-0,
                pageheight-160),0,160,memo5.LineS.Text);
         canvas.TextRect(Rect(0,320,pagewidth-0,
                pageheight-320),0,320,memo6.LineS.Text);
         canvas.TextRect(Rect(0,640,pagewidth-0,
                pageheight-640),0,640,memo7.LineS.Text);
         canvas.TextRect(Rect(0,800,pagewidth-0,
                pageheight-800),0,800,memo8.LineS.Text);
       enddoc;
    memo1里的东西打印不出来,怎么回事?谢谢