Пример #1
0
        public ActionResult PrintReport()
        {
            var report = StiMvcViewer.GetReportObject();

            // Some actions with report when printing

            return(StiMvcViewer.PrintReportResult(report));
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public virtual async Task <ActionResult> DetailPrintReport()
        {
            StiReport report = StiMvcViewer.GetReportObject();

            // Some actions with report when printing

            return(StiMvcViewer.PrintReportResult(report));
        }
        public ActionResult ExportReport()
        {
            var report     = StiMvcViewer.GetReportObject();
            var parameters = StiMvcViewer.GetRequestParams();

            if (parameters.ExportFormat == StiExportFormat.Pdf)
            {
                // Some actions with report when exporting to PDF
            }

            return(StiMvcViewer.ExportReportResult(report));
        }
Пример #4
0
        public ActionResult ExportReport()
        {
            StiReport report             = StiMvcViewer.GetReportObject();
            StiJavascriptParameters vars = StiMvcViewer.GetViewerParameters();

            if (vars.Options.ExportFormat == StiExportFormat.Pdf)
            {
                // Some actions with report when exporting to PDF
            }

            return(StiMvcViewer.ExportReportResult(report));
        }
Пример #5
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public virtual async Task <ActionResult> DetailExportReport()
        {
            StiReport report = StiMvcViewer.GetReportObject();

            //StiRequestParams parameters = StiMvcViewer.GetRequestParams();

            //if (parameters.ExportFormat == StiExportFormat.Pdf)
            //{
            //    // Some actions with report when exporting to PDF
            //}

            return(StiMvcViewer.ExportReportResult(report));
        }