How to cancel a FastReport print job?

不想你离开。 提交于 2019-12-11 09:16:02

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!