Tuesday, February 14, 2012

display details only when printing

Hi,

I have reports in reporting services. I want to add an introductory page to the report that shows a logo, report name , date and a few other details. However, I want to show that page only when user prints the report. Is this possible and if yes how?

Thanks

One solution that may work depending on your implementation is use the reportview in local report mode and disable the print button (reportviewer.showprintbutton=false). You can then front end the report with a "View to Screen" or "Print" option. Add a hidden report parameter to the report to toggle the visibility of the particular report items. When "Print" is chosen use the Reportviewer.Render method to send EMF data directly to the printer. Do a web search for reportviewer direct printing for examples.

No comments:

Post a Comment