Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
com/Tips/220659/Reporting-Services-PDF
Exporting a SQL Server Reporting Services 2005 Report Directly to PDF or Excel
{
Response.ContentType = application/excel;
Response.AddHeader(Content-disposition, filename=output.xls);
}
Response.OutputStream.Write(bytes, 0, bytes.Length);
Response.OutputStream.Flush();
Response.OutputStream.Close();
Response.Flush();
Response.Close();
One potential issue that you might run into upon deploying your project is that
your application server may not have the ReportViewer DLLs that are needed. You
have two options in this case. The first is to copy the three
Microsoft.ReportViewer.*.dll's
(ReportViewer.Common.dll, ReportViewer.ProcessingObjectModel.dll,
andReportViewer.WebForms.dll) from your development computer into
the BIN folder of your application server (or into the GAC). The second option
(though I have not verified it) is to install the SSRS redistributable on the
application server (http://www.microsoft.com/downloads/details.aspx?
familyid=8a166cac-758d-45c8-b637-dd7726e61367&displaylang=en).
Check out http://www.microsoft.com/sql/technologies/reporting/default.mspx for
good SSRS resources, including some nice learning tools and report packs.