rvexam.Reset(); rvexam.Visible = true; rvexam.LocalReport.ReportPath = Server.MapPath("~/PortalGUI/University/Reports/DFormReport.rdlc"); rvexam.Visible = true; rvexam.LocalReport.DataSources.Clear(); Microsoft.Reporting.WebForms.ReportDataSource ordSub = new Microsoft.Reporting.WebForms.ReportDataSource("dsDform", dtDform); Microsoft.Reporting.WebForms.ReportDataSource ordsUnivInfo = new Microsoft.Reporting.WebForms.ReportDataSource("dsUniv", dtUnivInfo); rvexam.LocalReport.DataSources.Add(ordSub); rvexam.LocalReport.DataSources.Add(ordsUnivInfo); rvexam.LocalReport.Refresh(); mpereportViwer1.Show(); byte[] bytes = rvexam.LocalReport.Render("EXCEL"); // , null, out mimeType, out encoding, out extension, out streamIds, out warnings); Response.Buffer = true; Response.Clear(); Response.ContentType = "application/CSV"; Response.AddHeader("content-disposition", "attachment; filename=Dfrom.CSV"); Response.BinaryWrite(bytes); // create the file Response.Flush();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)