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
Monday, January 07, 2013 4:31 AM
Not exactly the problem. But a similar kind of thread:
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
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:
To disable the custom print button conditionally, please refer to:
Hope this helps.
TechNet Community Support