public ActionResult SaveReportTemplate() { StiReport report = StiMvcMobileDesigner.GetReportObject(HttpContext); report.Save(Server.MapPath("~/Content/Reports/TwoSimpleLists.mrt")); return(StiMvcMobileDesigner.SaveReportTemplateResult(HttpContext)); }
public ActionResult GetReportTemplate() { StiReport report = new StiReport(); report.Load(Server.MapPath("~/Content/Reports/TwoSimpleLists.mrt")); return(StiMvcMobileDesigner.GetReportTemplateResult(HttpContext, report)); }
public ActionResult SaveReportTemplate() { StiReport report = StiMvcMobileDesigner.GetReportObject(HttpContext); // Save the report template, for example to JSON string string json = report.SaveToJsonString(); return(StiMvcMobileDesigner.SaveReportTemplateResult(HttpContext)); }
public ActionResult GetReportTemplate(string id) { // Create the report object and load data from xml file var report = new StiReport(); report.Load(Server.MapPath("~/Content/ReportTemplates/" + id + ".mrt")); return(StiMvcMobileDesigner.GetReportTemplateResult(this.HttpContext, report)); }
public ActionResult GetReportSnapshot() { StiReport report = StiMvcMobileDesigner.GetReportObject(HttpContext); DataSet data = new DataSet("Demo"); data.ReadXml(Server.MapPath("~/Content/Data/Demo.xml")); report.RegData(data); return(StiMvcMobileDesigner.GetReportSnapshotResult(HttpContext)); }
public ActionResult SaveReportTemplate() { StiReport report = StiMvcMobileDesigner.GetReportObject(this.HttpContext); // string packedReport = report.SavePackedReportToString(); // ... // The save report code here // ... // Completion of the report saving without dialog box return(StiMvcMobileDesigner.SaveReportTemplateResult(this.HttpContext)); }
public ActionResult GetReportSnapshot() { // Get the report template StiReport report = StiMvcMobileDesigner.GetReportObject(this.HttpContext); // 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(StiMvcMobileDesigner.GetReportSnapshotResult(this.HttpContext, report)); }
public ActionResult DesignerEvent() { return(StiMvcMobileDesigner.DesignerEventResult(HttpContext)); }
public ActionResult SaveAsReportTemplate() { return(StiMvcMobileDesigner.SaveReportTemplateResult(HttpContext)); }