报告查看器中导出并打印事件 [英] Report viewer export and print events

查看:239
本文介绍了报告查看器中导出并打印事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要赶报表查看器的导出和打印活动,因为我需要登录的用户名和此类活动的时间/日期。
我有看Telerik的报表查看器和事件以及在标准的ASP报表浏览器,但我看不到任何事件,可以帮助我在这些方面。

I need to catch the exporting and printing activities of a report viewer because I need to log the username and the time/date of such activity. I have had a look at the telerik report viewer events and as well as at the standard asp report viewer but I do not see any of the events that may help me in these regards.

我如何能赶上报表浏览器的打印和出口活动嵌入我的code:

How can I catch the printing and export activity of the report viewer to embed my code:

 Utilities.Record_Transaction("Report_xxx-Exported to Excel " + cname, (string)Session["userName"]);

任何暗示?

推荐答案

有关出口可以隐藏出口管制和c你需要实现自己加入$ C $。这里是从谷歌这样做的第一个例子:的http://dinesql.blogspot.co.uk/2010/05/report-viewer-control-exporting-reports.html

For export you can hide Export control and implement your own adding code you need. Here is first example of doing this from google: http://dinesql.blogspot.co.uk/2010/05/report-viewer-control-exporting-reports.html

同样的方法可用于印刷 - <一个href=\"http://stackoverflow.com/questions/3504747/how-to-call-print-from-asp-net-on-a-reportviewer-control\">How调用从asp.net打印ReportViewer控件?

Same approach you can use for printing - How to call print from asp.net on a reportviewer control?

这篇关于报告查看器中导出并打印事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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