I'm using .rdlc report in my **web application**, exporting report to pdf & print it works great but now i wanted to print report automatically(i,e on click of print button.)
Is it possible to print rdlc report automatically?
Clicking print button will raise the print popup window from the browser. That's the general behavior. I can not find a perfect resolution for your answer, but try following script, you will be able to customize for need. This works for IE but not other
browser.
In your web application if you have used report viewer, then it gives an option of printing the report directly from the report viewer itself. On the header of the report viewer, you will see a print option for that report. That should solve your problem.
BUT, this has a serious flaw, the print icon only appears if you browse your application using IE only. Other browsers.. you wont be able to see that icon.
Regards
Srikanth Kasturi
Please "Mark As Answer" if my post serves purpose.
Thanks for the reply Srikanth but application is works fine in chrome & firefox, why i'm using these browser means some of the .css file will not supporting in ie. so i wanted to print reports on click of the button itself. is it possible?
sharanamma
Member
194 Points
65 Posts
direct print asp.net report viewer
May 05, 2012 12:25 PM|LINK
I'm using .rdlc report in my **web application**, exporting report to pdf & print it works great but now i wanted to print report automatically(i,e on click of print button.)
Is it possible to print rdlc report automatically?
Please help me,
& thank you.
cnranasinghe
Star
8899 Points
1800 Posts
Re: direct print asp.net report viewer
May 06, 2012 04:30 PM|LINK
Clicking print button will raise the print popup window from the browser. That's the general behavior. I can not find a perfect resolution for your answer, but try following script, you will be able to customize for need. This works for IE but not other browser.
http://centrilla.blogspot.com/2010/12/send-html-page-directly-to-default.html
Uncomment the sup print() procedure before executing.
Srikanth Kas...
Contributor
4299 Points
883 Posts
Re: direct print asp.net report viewer
May 08, 2012 07:19 AM|LINK
In your web application if you have used report viewer, then it gives an option of printing the report directly from the report viewer itself. On the header of the report viewer, you will see a print option for that report. That should solve your problem.
BUT, this has a serious flaw, the print icon only appears if you browse your application using IE only. Other browsers.. you wont be able to see that icon.
Srikanth Kasturi
Please "Mark As Answer" if my post serves purpose.
sharanamma
Member
194 Points
65 Posts
Re: direct print asp.net report viewer
May 10, 2012 11:59 AM|LINK
Thanks for the reply Srikanth but application is works fine in chrome & firefox, why i'm using these browser means some of the .css file will not supporting in ie. so i wanted to print reports on click of the button itself. is it possible?