下面是我写的代码,请各位指点一下
procedure Tfrm_report.btPrintClick(Sender: TObject);
// **** 直接打印
var
   sReportfile:String;
begin
  inherited;
  sReportfile:= PApp_path+'reports\客户资料.frf';
  if FileExists(sReportfile) then begin
     frReport1.LoadFromFile(sReportfile);
     frReport1.PrepareReport;
     frReport1.PrintPreparedReport('', 1, False, frAll);  //直接打印
  end
  else begin
     Application.MessageBox('没有这个文件,可能报表文件已丢失!','提示信息',MB_OK);
     Exit;
  end;
end;
这样试也是先直接打印一次,再跳出打印对话框,按确定就会再次打印,当然取消就不打印
能不能直接打印一份后,不再跳出打印对话框,谢谢
不好意思,我的分数不多了