我已经建立了一个MRT文件(Hesab.mrt),并且在查询中使用一个参数来控制要返回的大量结果。 现在一切正常,直到我输入大量要返回的结果。 然后,我收到“错误:服务器超时响应”。错误。
StiReport sr = new StiReport();
sr.Load(Server.MapPath(@"~/Content/Reports/Hesab.mrt"));
sr.RegBusinessObject("Details", "Details", reportList );
sr.Render();
return Stimulsoft.Report.Mvc.StiMvcViewer.GetReportSnapshotResult(this.HttpContext, sr);
答案 0 :(得分:0)
请为 MvcViewer 组件设置 ClientRequestTimeout 选项,该值以秒为单位设置。默认值为 20 秒。
@Html.Stimulsoft().StiMvcViewer(
"Reports",
new StiMvcViewerOptions() {
Controller = "Reports",
ActionGetReportSnapshot = "GetReportSnapshot",
ActionViewerEvent = "ViewerEvent",
ActionExportReport = "ExportReport",
ActionPrintReport = "PrintReport",
ClientRequestTimeout = 12345, // <---------------
}
)