public ActionResult OpenReport() { StiRequestParams requestParams = StiMvcDesigner.GetRequestParams(); System.Web.HttpContext.Current.Session["CurrentStimulsoftFileNameToDesign"] = requestParams.Designer.FileName; return(StiMvcDesigner.GetReportResult()); }
public ActionResult GetDesignReport() { try { if (!string.IsNullOrEmpty(Request.QueryString["DataMethod"])) { var info = new ReportProvider().GetType().GetMethod(Request.QueryString["DataMethod"]); if (info != null) { var invoke = info.Invoke(info, string.IsNullOrEmpty(Request.QueryString["DataMethodParamets"]) ? null : new[] { Request.QueryString["DataMethodParamets"] }); if (invoke != null) { var report = new StiReport(); report.Load((byte[])invoke); return(StiMvcDesigner.GetReportResult(report)); } } } return(null); } catch (Exception ex) { return(null); } }
public ActionResult GetReport() { var appPath = Server.MapPath("~/"); var dashboard = Helpers.Dashboard.CreateTemplate(appPath); return(StiMvcDesigner.GetReportResult(dashboard)); }
public ActionResult GetReport(string id) { var report = StiReport.CreateNewDashboard(); report.Load(Server.MapPath($"~/Dashboards/{id}.mrt")); return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult GetReport() { StiReport report = new StiReport(); report.Load(Server.MapPath("~/Content/Reports/TwoSimpleLists.mrt")); return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult CreateReport() { if (System.Web.HttpContext.Current.Session["CurrentStimulsoftFileNameToDesign"] != null) { System.Web.HttpContext.Current.Session.Remove("CurrentStimulsoftFileNameToDesign"); } return(StiMvcDesigner.GetReportResult(new StiReport())); }
public ActionResult GetReport(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(StiMvcDesigner.GetReportResult(report)); }
public ActionResult GetReport() { var report = new StiReport(); report.Load(Server.MapPath("~/Content/Reports/TwoSimpleLists.mrt")); report.Dictionary.Databases.Clear(); return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult GetReport() { var report = StiReport.CreateNewReport(); var path = Server.MapPath("~/Reports/MasterDetail.mrt"); report.Load(path); return(StiMvcDesigner.GetReportResult(report)); }
string reportName = "alvara2.mrt"; //or "alvara.mrt" public ActionResult GetReport() { StiReport report = new StiReport(); report.Load(Server.MapPath($"~/Content/Reports/{reportName}")); RegisterReportData(report); return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult GetReport() { // Loading the report template var reportPath = Server.MapPath("~/Content/Reports/TwoSimpleLists.mrt"); var report = new StiReport(); report.Load(reportPath); return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult GetReport() { StiReport report = new StiReport(); if (System.Web.HttpContext.Current.Session["CurrentStimulsoftFileNameToDesign"] != null) { report.Load(System.Web.HttpContext.Current.Session["CurrentStimulsoftFileNameToDesign"].ToString()); } return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult GetReport() { // Create the dashboard object var report = StiReport.CreateNewDashboard(); // Load dashboard template report.Load(Server.MapPath("~/Dashboards/DashboardChristmas.mrt")); // Return template to the Designer return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult GetReport() { StiReport report = new StiReport(); report.Load(Server.MapPath("~/Content/Reports/TwoSimpleLists.mrt")); var dados = Help.RetornarPessoas(); report.RegBusinessObject("Pessoa", dados); report.Dictionary.SynchronizeBusinessObjects(2); return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult PreviewReport() { StiReport report = StiMvcDesigner.GetActionReportObject(); DataSet data = new DataSet("Demo"); data.ReadXml(Server.MapPath("~/Content/Data/Demo.xml")); report.RegData(data); return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult GetReport() { var reportTempData = TempData[Helpers.TempReportName] as ReportList; StiReport report = new StiReport(); //report.Load(Server.MapPath("~/Content/Reports/TwoSimpleLists.mrt")); report.Load(Server.MapPath($"~/Content/Reports/{reportTempData.Name}.mrt")); report = ReportData.RegisterData(reportTempData.Data, report); TempData[Helpers.TempReportName] = reportTempData; return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult GetReport() { var report = new StiReport(); report.Load(Server.MapPath("~/Content/Reports/MyTwoSimpleLists.mrt")); // Add System.Web.Mvc.dll library to the report references var assemblies = new string[report.ReferencedAssemblies.Length + 1]; Array.Copy(report.ReferencedAssemblies, assemblies, report.ReferencedAssemblies.Length); assemblies[assemblies.Length - 1] = "System.Web.Mvc.dll"; report.ReferencedAssemblies = assemblies; return(StiMvcDesigner.GetReportResult(report)); }
public ActionResult PreviewReport() { return(StiMvcDesigner.GetReportResult(SessionParameters.Report)); }
public ActionResult GetReport() { var report = Helpers.Dashboard.CreateTemplate(); return(StiMvcDesigner.GetReportResult(report)); }