ReportViewer render as PDF
Posted on 2010-09-22
Ive got a report working great using a ReportViewer in ASP.net, however every load I convert the HTML report into a PDF.
Is it possible instead of loading the ReportViewer up in the HTML view, outputting the PDF straight away?
I know I have to do:-
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment; filename=Test.pdf)
However I have no idea how to set the ReportViewer to output PDF straight away.
Any ideas on how I can do this, any code examples would be appriciated.