微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

密封报告与 asp.net mvc web 应用程序集成

如何解决密封报告与 asp.net mvc web 应用程序集成

我想在我的 asp.net 应用程序中显示密封报告,为此我有集成 TestandSample 应用程序代码。 如何在我的应用程序中执行报告和呈现报告。 我需要什么脚本文件以及如何更改页眉页脚。 我目前的状态是:

public ActionResult ReportResult()
        {
            //Simple load and report execution and generation in a HTML Result file
            Repository repository = Repository.Create();
            Report report = Report.LoadFromFile(@"C:\ProgramData\Seal Report Repository\Reports\Search - Orders.srex",repository);
            ReportExecution execution = new ReportExecution() { Report = report };
            execution.Execute();
            while (report.IsExecuting) System.Threading.Thread.Sleep(100);
            string result = execution.GenerateHTMLResult();
            Process.Start(result);
            return View();    // How to return ---> execution.GenerateHTMLResult(); as view.
        }

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。