var report = new LocalReport(); RvQpTemplate.LocalReport.DataSources.Add(new Microsoft.Reporting.WebForms.ReportDataSource()); RvQpTemplate.DataBind(); Byte[] mybytes = RvQpTemplate.LocalReport.Render("WORD", null, out extension, out encoding, out mimeType, out streams, out warnings); Response.ClearHeaders(); Response.ClearContent(); Response.Buffer = true; Response.Clear(); Response.ContentType = contentType; Response.AddHeader("Content-Disposition", "attachment; filename="+test.docx); Response.BinaryWrite(mybytes); Response.Flush(); Response.Close(); Response.End();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)