从打印对话框返回值 [英] return values from print dialog

查看:89
本文介绍了从打印对话框返回值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道如何在显示打印对话框时获取返回值,

如果用户已将报告发送到打印机,我必须禁用打印按钮,否则如果用户按下取消则需要按钮将启用打印按钮。

我已设法使用添加以下属性的自定义按钮:

BtnPrint.Attributes.Add( " onclick" " document。 getElementById('" + ReportViewer1.ClientID + "')。ClientController.LoadPrintControl();返回true; "

我需要知道用户点击了确定或取消按钮。

感谢您的帮助!

I need to know how can I get the return values when showing the Print Dialog,
I have to disable print button if the user has send the report to the printer, otherwise
if the user press the cancel button  the print button will be enable.

I have manage to use a custom button adding the following attribute:

BtnPrint.Attributes.Add("onclick", "document.getElementById('" + ReportViewer1.ClientID + "').ClientController.LoadPrintControl();return true;")

I need to know wether the user clicked the ok or the cancel button.

Thanks for your help!

推荐答案

还有人想出来吗?


这篇关于从打印对话框返回值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆