private DemoXtraReport1 CreateDateReport() { DemoXtraReport1 report = new DemoXtraReport1(); DataSet ds = GetData(); report.DataSource = ds; report.DataMember = "Detail"; // Lặp lại Detail report.Name = "Phieu thu - chi tien mat : "; // Export file Name return(report); }
public ActionResult ExportReportViewerPartial() { DemoXtraReport1 quarterReport = CreateDateReport(); return(DevExpress.Web.Mvc.ReportViewerExtension.ExportTo(quarterReport)); }
// // GET: /DemoGetData/ public ActionResult ReportViewerPartial()// id để report with { ViewData["Report"] = new DemoXtraReport1(); return(PartialView()); }