问题
How do I show a MessageBox when a print job is canceled in FastReport's Print Job Dialog?
回答1:
if frxReport1.Print then Showmessage('Aborted');
回答2:
When frxReportPrint.Print returns false, it is either user cancel or error in printing. So you need to check Errors.Text is empty or not, like:
if not frxReportPrint.Print then
if frxReportPrint.Errors.Text = '' then
UserCancel := true
else
Abort; // something wrong during printing.
来源:https://stackoverflow.com/questions/16941760/how-to-cancel-a-fastreport-print-job