public IActionResult GetReport()
        {
            StiReport report = new StiReport();

            report.Load(StiNetCoreHelper.MapPath(this, "Reports/TwoSimpleLists.mrt"));

            return(StiNetCoreDesignerFx.GetReportResult(this, report));
        }
Example #2
0
        public IActionResult GetReport(string id)
        {
            // Create the report object and load data from xml file
            var report = new StiReport();

            report.Load(StiNetCoreHelper.MapPath(this, "ReportTemplates/" + id + ".mrt"));

            return(StiNetCoreDesignerFx.GetReportResult(this, report));
        }
        public IActionResult PreviewReport()
        {
            DataSet data = new DataSet("Demo");

            data.ReadXml(StiNetCoreHelper.MapPath(this, "Reports/Data/Demo.xml"));

            StiReport report = StiNetCoreDesignerFx.GetReportObject(this);

            report.RegData(data);

            return(StiNetCoreDesignerFx.PreviewReportResult(this, report));
        }
Example #4
0
        public IActionResult SaveReport()
        {
            StiReport report = StiNetCoreDesignerFx.GetReportObject(this);

            // string packedReport = report.SavePackedReportToString();
            // ...
            // The save report code here
            // ...

            // Completion of the report saving without dialog box
            return(StiNetCoreDesignerFx.SaveReportResult(this));
        }
Example #5
0
        public IActionResult PreviewReport()
        {
            // Get the report template
            StiReport report = StiNetCoreDesignerFx.GetReportObject(this);

            // Register data, if necessary
            var data = new DataSet("Demo");

            data.ReadXml(StiNetCoreHelper.MapPath(this, "Data/Demo.xml"));
            report.Dictionary.Databases.Clear();
            report.RegData(data);

            // Return the report snapshot result to the client
            return(StiNetCoreDesignerFx.PreviewReportResult(this, report));
        }
 public IActionResult DesignerEvent()
 {
     return(StiNetCoreDesignerFx.DesignerEventResult(this));
 }