Fastreport报表,由于用户的打印纸的有时候是A4纸,有时候比A4纸小的多,故而想通过程序控制,
让用户自己输入纸的长度,再打印报表,今天弄了一早上也没有弄出来,请高手指教。
    page:=TfrxReportpage(frxreport1.Pages[0]);
  //page.PaperSize:=edit1.Height;
 // page.PaperHeight:=edit1.Height;
   这个方法不管用,请大家给个思路:)))

解决方案 »

  1.   

    贴出代码供大家参考
     
    for i:=0 to  frxReport1.PagesCount-1  do
        begin
          g_height:=edit2.Text;
          page:=TfrxReportPage(frxReport1.Pages[i]);
          page.PaperHeight:=strtoint(g_height);
        end;
      

  2.   

    请问llh6795(紫燕归)你对quickrep熟悉吗,我有个问题想请教你,能不能在同一行放两个detailband,谢谢!
      

  3.   

    我没有用过 quickrep,不好意思:)))