1

How do I show a MessageBox when a print job is canceled in FastReport's Print Job Dialog?

4

2 回答 2

0

当 frxReportPrint.Print 返回 false 时,要么是用户取消,要么是打印出错。所以你需要检查 Errors.Text 是否为空,例如:

if not frxReportPrint.Print then
  if frxReportPrint.Errors.Text = '' then
    UserCancel := true
  else
    Abort; // something wrong during printing.
于 2019-04-28T01:42:12.517 回答
-1
if frxReport1.Print then Showmessage('Aborted');
于 2013-10-02T16:37:59.793 回答