如何取消FastReport打印作业? [英] How to cancel a FastReport print job?
本文介绍了如何取消FastReport打印作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在FastReport的打印作业"对话框中取消打印作业时,如何显示消息框?
How do I show a MessageBox when a print job is canceled in FastReport's Print Job Dialog?
推荐答案
当frxReportPrint.Print返回false时,它是用户取消操作或打印错误.因此,您需要检查Errors.Text是否为空,例如:
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.
这篇关于如何取消FastReport打印作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文