我在运行时使用 mvc5.2 和 stimulsoft 2014.3 看到错误:描述:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:System.ArgumentNullException:值不能为空。参数名称:key
源错误:
第 7 行: 第 8 行:
@Html.Stimulsoft().RenderMvcViewerScripts() 第 9 行:
@Html.Stimulsoft().StiMvcViewer("MyViewr", new StiMvcViewerOptions() 第 10 行:{ 第 11 行:ActionGetReportSnapshot = "FromLoadFileReport",
@Html.Stimulsoft().StiMvcViewer("MyViewr", new StiMvcViewerOptions()
{
ActionGetReportSnapshot = "FromLoadFileReport",
ActionViewerEvent = "ViewerEvent",
Width = Unit.Percentage(100)
//Theme = StiTheme.Office2007Black,
//ActionPrintReport = "PrintReport",
//ActionExportReport = "ExportReport",
//ToolbarBackgroundColor = System.Drawing.Color.Silver
StiReport report = new StiReport();
string Path = Server.MapPath("~" + ("/Web/Areas/RepUser/HistoryJob.mrt"));
report.Load(Path);
report.Compile();
return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);