Setting up a maximum printing quota in report viewer
-
Monday, January 07, 2013 3:24 AM
I have a web application using:
- Asp.net 4.0
- Report Viewer visual studio 2010
- SSRS 2012
Aspx file load report viewer, and then the report viewer connect to ssrs 2012 remotely.
Can I set the maximum clicking of print button to the number what I want?
For the example, click `print button` 3 times then user can not click it after that.
My goal is to set maximal quota for printing.
Thanks in advance
All Replies
-
Monday, January 07, 2013 4:31 AM
Not exactly the problem. But a similar kind of thread:
http://stackoverflow.com/questions/6776301/ssrs-print-counter
Regards,Eshwar.
Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.
-
Tuesday, January 08, 2013 10:06 AMModerator
Hi Deqy,
From your description, you want to disable the Print button in the ReportViewer control after an user prints the report for a specific times. This requirement cannot be achieved by using the built-in print button of the ReportViewer control. To work around the issue, we can create a custom print button in your ASP .NET Web page. We can define a global variable which pluses 1 everytime the user clicks the print button, and then disable it when the variable value is equal to a specific integer.
To create a custom print button, we need to use the ReportExecutionService.Render Method:
ReportExecutionService.Render MethodTo disable the custom print button conditionally, please refer to:
How to conditionally Enable/Disable Button control using JavaScript ?Hope this helps.
Regards,
Mike Yin
TechNet Community Support- Proposed As Answer by Sanjeewan Kumar Tuesday, January 08, 2013 10:08 AM
- Marked As Answer by Mike YinMicrosoft Contingent Staff, Moderator Tuesday, January 15, 2013 1:18 AM


