Esempio n. 1
0
        public IActionResult SaveReport()
        {
            string reportString = StiNetCoreDesigner.GetReportString(this);
            string reportName   = StiNetCoreDesigner.GetReportName(this);

            try
            {
                System.IO.File.WriteAllText(_hostEnvironment.WebRootPath + "\\reports\\" + reportName + ".mrt", reportString);
                return(StiNetCoreDesigner.SaveReportResult(this, true, "The report is saved successfully"));
            }
            catch (Exception e)
            {
                return(StiNetCoreDesigner.SaveReportResult(this, false, "Error at saving: " + e.Message));
            }
        }