The user of my report would like to know if the report has already been printed? If the report has already been printed then the user would like to see a message that the report has already been printed previously on the report next time the report is generated. what is the best way to achieve this? Thanks in advance.
How to know if a report is already printed in SSRS?
938 Views Asked by user3577463 At
2
There are 2 best solutions below
0
Trubs
On
If you click the print button, the RenderFormat.Name of the report is IMAGE (The print button actually renders the report as a TIFF prior to printing, so Export as TIFF file would have the same effect)
if you're using the renderformat as a parameter to an proc, you could log the fact it was printed, and subsequently display a message saying so.
Related Questions in REPORTING-SERVICES
- Pass multiple account variables to single parameter
- Update SSRS security for reports
- SSRS Report Expression, for 2 fields in one column
- How to assign dataset values in RDLC report header?
- SSRS Multi-Value Parameter Not Filtering
- Toggle groups based on a parameter
- How to build rptproj using C#
- Don't produce report if there is no data - PDF
- SSRS ListRenderingExtension Unauthorised Exception
- SSRS Color Expression Lesser than X
- Format Numbers in Multiple columns of SSRS Report
- Create Sum of calculated columns in Microsoft Reporting Services like Fibonacci series
- SSRS parameter Datatypes
- creating many reports from a single template - what is this called?
- SSRS Add Parent Group to Entire Tablix
Related Questions in SSRS-2008
- How to build rptproj using C#
- Format Numbers in Multiple columns of SSRS Report
- creating many reports from a single template - what is this called?
- Find Mondays between 2 dates
- Show a message to the user instead of blank report
- SSRS Tablix - Total with Top N
- How to repeat Left Most rows for a group in SSRS report
- If else Condition in PostgreSql
- How can I eliminate #error in SSRS expression when subtracting by field that may or may not be null?
- How to implement multiselect with new columns in SSRS
- Tablix in Tablix - Header not repeating
- Why rsAccessDenied error on SSRS when using Chrome but not in IE
- If A Not Equal to B in SSRS
- Make whole SSRS report repeat by groups
- Colour Formatting Based on Conditions
Related Questions in SSRS-2008-R2
- how to migrate or copy SSRS datasource from one server to another without restoring the report server
- Show a message to the user instead of blank report
- Getting an SSRS map to include 0 in data
- How to use a multi-value parameters in report groupings
- How to repeat Left Most rows for a group in SSRS report
- Select Top 20 Percent Software Installed - Query Result shows software that dont belong to top 20 percent
- SSRS work in vs studio preview but blank page in browser
- Hiding multivalue data leaving (Select All) in the dropdown
- If A Not Equal to B in SSRS
- Colour Formatting Based on Conditions
- How do you check if an SSRS report was executed by a user or an automatic refresh in the SSRS SQL database?
- SQL Daily Totals
- SSRS 2008 R2 Chart Series Tooltip Accuracy
- SSRS sum grouping
- Cannot add new shared dataset to report
Related Questions in REPORTINGSERVICES-2005
- How to know if a report is already printed in SSRS?
- Building excel report with ssrs link - how to pass dynamic date parameters entered in excel sheet
- SSRS Switch Sort
- SQL, BETWEEN and CASE (3 COndition Parameter)
- Parameter issue in SSRS 2005
- SSRS Report - Specific Format
- Sorting and filtering on a line graph doesnt work ssrs
- How to make a column invisible in an ssrs matrix
- how to include an ssrs expression and an indicator in the same cell
- How to add total in SSRS 2005
- ssrs 2005 matrix divide count value by the subtotal
- How to show data of a column using a Parameter in ssrs?
- SSRS Grouping and repeat in 3 columns
- hot to fix line graph broken image in ssrs line chart while rendering?
- data driven subscription SSRS reports to share folder
Related Questions in SSRS-2012
- SSRS Multi-Value Parameter Not Filtering
- SSRS Add Parent Group to Entire Tablix
- SSRS 2012 - Hide Duplicate Rows
- how to migrate or copy SSRS datasource from one server to another without restoring the report server
- SSRS Tablix - Total with Top N
- Convert integer of MYYYY into Date in ssrs
- Tablix in Tablix - Header not repeating
- SSRS date & time parameter based on time of day
- SSRS: How to restore a deleted title in a chart
- If A Not Equal to B in SSRS
- Colour Formatting Based on Conditions
- How to select the Data Source at Runtime in SSRS Report Builder
- Use RunningValue in CRM Dashboard Chart?
- Trying to use Switch statement in SSRS
- SSRS - Showing data's each character in box
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no official documentation on how to achieve this, but I there could be a way of doing this.
The
ExecutionLogStoragetable contains information about reports executed or exported.When you print a report by clicking on the print button in the toolbar, the report is "re-generated" and it is logged in the
ExecutionLogStoragetable, withFormat = 'IMAGE'.If you export your report as a TIFF file, a line is also generated with
Format = 'IMAGE'.Fortunately, there is also a
ByteCountcolumn, which contains the "Size of rendered reports in bytes." according to MSDN.This
ByteCountcolumn contains0in the case the report is printed, and the image size if you do an image export.So I ended up with the following query, that you can execute in the SSRS DB:
I just kept key columns here and of course you can you can adapt it to fit your need, and maybe do a
group byto have print counts per report.In your case with the above query, you could add a DataSource to your report targetting the ReportServer DB, and if the query has a result matching the report, display the message.
Alternatively, you could schedule a job filling another DB that will be used to keep track of the reports printed, and query this DB in the report.