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.
If you can render it on a page you can use javascript window.print(), that prints current window. So as sinni800 said render report on separate page.
Something like this,
on page with other content add this button :
First parameter of open window is page with your report viewer, and in that page you can start print on load event, like this :
But if you ask me better stick with your current solution.
You can save your report as PDF on disk, open it with Javscript and then print it, there is a example on Code Project for exactly your scenario as I understud you :
http://www.codeproject.com/Tips/376300/Custom-Print-functionality-for-Microsoft-Report-Vi