用了fastreport做了个简单报表,不想要它的预览,想直接点击一个按钮就打印报表的内容,请问如何编写代码?
我知道预览是这样写的:
frReport1.ShowReport;

解决方案 »

  1.   

    frReport1.PrepareReport;
      frReport1.PrintPreparedReport('', 1, True, frAll);
      

  2.   

    frReport1.PrepareReport;
    frReport1.PrintPreparedReport('',1,true,frall);
      

  3.   

    frReport.ShowPrinfDialog:=False; frReport1.PrepareReport;
      frReport1.ShowPreparedReport;
      

  4.   

    1.设置属性
    frReport.ShowPrinfDialog:=False;2.运行一下代码
    frReport1.PrepareReport;
    frReport1.ShowPreparedReport
      

  5.   

    PrepareReport            构建报表而不预览。
    PrintPreparedReport      打印一个准备好的报表。