我想在我的 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.
}