public ActionResult PreviewReport() { DataSet data = new DataSet("Demo"); data.ReadXml(Server.MapPath("~/Content/Data/Demo.xml")); StiReport report = StiMvcDesignerFx.GetReportObject(); report.RegData(data); return(StiMvcDesignerFx.PreviewReportResult(report)); }
public ActionResult PreviewReport() { // Get the report template StiReport report = StiMvcDesignerFx.GetReportObject(); // Register data, if necessary var data = new DataSet("Demo"); data.ReadXml(Server.MapPath("~/Content/Data/Demo.xml")); report.Dictionary.Databases.Clear(); report.RegData(data); // Return the report snapshot result to the client return(StiMvcDesignerFx.PreviewReportResult(report)); }