Last post Sep 07, 2011 11:51 AM by wadewalker25
Sep 03, 2011 08:42 AM|craigbtx|LINK
Is there anyway to detect that a user has printed a report that is in a report viewer?
I am using rdlc file in the MicrosoftReportViewer. Not the reportserver.
I'd like to know if user click the print icon or the export icon on the toolbar.
Or is there some "hack" way of determining it?
Sep 03, 2011 11:20 AM|Shuvo Aymon|LINK
What report viewer you are using? I think a way can be forbidden a user printing report while viewing rather give him a button to print the report.
But he will be able to print with explorer's print option (what you can also remove) or the worst case is print screen.
Sep 03, 2011 01:08 PM|craigbtx|LINK
I am using the MicrosoftReportViewer in the Toolbox for VisualStudio 2008. Its in the Reporting tab of the toolbox.
I dont want to stop the user from printing, just detect if they did.
Sep 06, 2011 05:32 PM|wadewalker25|LINK
So, the reportserver has a sql table aptly titled, ReportServer. And in this db is a table called ExecutionLogs. This table holds a lot of information regarding the running of the reports. You can see when a report was opened and by whom. It will also tell
you in what format someone has exported a report. I wasn't sure about the printing of a report, but you can kind of tell based on the format and time a report was run. What i mean is, when a report is first ran it has a timestamp and a format of 'RPL'. I have
no idea what 'RPL' stands for, probably 'Real Pigmy Lizards', but when the report is printed it also has a format of 'RPL'. But, being that their is another row of RPL a coupld of seconds after the first one, you can kind of guess that the user might have
printed the report. But he/she could have also just hit refresh...
Hope that helps...
Sep 07, 2011 11:45 AM|craigbtx|LINK
I am using an rdlc file in the MicrosoftReportViewer in a web page. Not the reportserver.
Sep 07, 2011 11:51 AM|wadewalker25|LINK
oh, i see... check out my other post regarding something similar: