public ActionResult PreviewReport() { StiReport report = StiMvcDesigner.GetActionReportObject(); RegisterReportData(report); return(StiMvcDesigner.PreviewReportResult(report)); }
public ActionResult PreviewReport() { StiReport report = StiMvcDesigner.GetActionReportObject(); var dados = Help.RetornarPessoas(); report.RegBusinessObject("Pessoa", dados); report.Dictionary.SynchronizeBusinessObjects(2); return(StiMvcDesigner.PreviewReportResult(report)); }
public ActionResult PreviewReport() { var data = new DataSet("Demo"); data.ReadXml(Server.MapPath("~/Content/Data/Demo.xml")); var report = StiMvcDesigner.GetActionReportObject(); report.RegData(data); return(StiMvcDesigner.PreviewReportResult(report)); }
public ActionResult PreviewReport() { DataSet data = new DataSet("Demo"); data.ReadXml(Server.MapPath("~/Content/Data/Demo.xml")); StiReport report = StiMvcDesigner.GetActionReportObject(); RegisterReportData(report); return(StiMvcDesigner.PreviewReportResult(report)); }
public ActionResult PreviewReport() { var reportTempData = TempData[Helpers.TempReportName] as ReportList; StiReport report = StiMvcDesigner.GetActionReportObject(); //var dados = Help.RetornarPessoas(); //report.RegBusinessObject("Pessoa", dados); //report.Dictionary.SynchronizeBusinessObjects(2); report = ReportData.RegisterData(reportTempData.Data, report); TempData[Helpers.TempReportName] = reportTempData; return(StiMvcDesigner.PreviewReportResult(report)); }
public ActionResult PreviewReport() { // Get the report template StiReport report = StiMvcDesigner.GetActionReportObject(); // 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(StiMvcDesigner.PreviewReportResult(report)); }
public ActionResult PreviewReport() { // Getting a preview report var report = StiMvcDesigner.GetActionReportObject(); // Deleting connections in the report template report.Dictionary.Databases.Clear(); // Loading data from the XML file var dataPath = Server.MapPath("~/Content/Data/Demo.xml"); var data = new DataSet(); data.ReadXml(dataPath); // Registering data in the report report.RegData(data); // Syncing the data structure, if required //report.Dictionary.Synchronize(); return(StiMvcDesigner.PreviewReportResult(report)); }