if not MyChk_YL.Checked then
//不预览
begin
frxReport1.ShowReport;
end
else
begin
frxReport1.PrintOptions.ShowDialog:=MyChk_FW.Checked;
frxReport1.PrepareReport();
frxReport1.Print;
end;
这是我在用的。
thanks a lot!
But I find answer my self. Anyway, thank you very much
frxReport1.PrepareReport(true);
frxReport1.PrintOptions.ShowDialog:=false;
frxReport1.PrintOptions.Copies:=3;
frxReport1.Print;