我给你一个函数,版本FR 2.7
printpreview(frxreport);
//就可以了。
procedure TDMReport.PrintPreview(AFrReport: TfrReport);
var
Pages:String;
Copies:Integer;
Collate:Boolean;
PrintPages:TfrPrintPages;
begin
try
Pages:='';
Copies:=1;
Collate:=True;
PrintPages:=frAll;
AFrReport.PrepareReport;
AFrReport.PrintPreparedReport(Pages,Copies,Collate,PrintPages);
except
ErrMessage('初始化打印程序失败,请检查打印机或者打印机驱动程序的安装情况!');
Exit;
end;
end;