Ejemplo n.º 1
0
        public ActionResult GetReport()
        {
            StiReport report = new StiReport();

            report.Load(Server.MapPath("~/Content/Reports/TwoSimpleLists.mrt"));

            return(StiMvcDesignerFx.GetReportResult(report));
        }
Ejemplo n.º 2
0
        public ActionResult SaveReport()
        {
            StiReport report = StiMvcDesignerFx.GetReportObject();

            // Store the report object in the session
            Session["SaveReportTemplate"] = report;
            return(View("SaveDialog"));
        }
Ejemplo n.º 3
0
        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(StiMvcDesignerFx.GetReportResult(report));
        }
Ejemplo n.º 4
0
        public ActionResult PreviewReport()
        {
            DataSet data = new DataSet("Demo");

            data.ReadXml(Server.MapPath("~/Content/Data/Demo.xml"));

            StiReport report = StiMvcDesignerFx.GetReportObject();

            report.RegData(data);

            return(StiMvcDesignerFx.PreviewReportResult(report));
        }
Ejemplo n.º 5
0
        public ActionResult SaveReport()
        {
            StiReport report = StiMvcDesignerFx.GetReportObject();

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

            // Completion of the report saving without dialog box
            return(StiMvcDesignerFx.SaveReportResult());
        }
Ejemplo n.º 6
0
        public ActionResult PreviewReport()
        {
            // Get the report template
            StiReport report = StiMvcDesignerFx.GetReportObject();

            // 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(StiMvcDesignerFx.PreviewReportResult(report));
        }
Ejemplo n.º 7
0
 public ActionResult DesignerEvent()
 {
     return(StiMvcDesignerFx.DesignerEventResult());
 }
Ejemplo n.º 8
0
 public ActionResult GetLocalization()
 {
     return(StiMvcDesignerFx.GetLocalizationResult());
 }