Code: Select all
An exception of type 'System.ArgumentNullException' occurred in mscorlib.dll but was not handled in user code
Additional information: Value cannot be null.
Code: Select all
@using System.Web.UI.WebControls
@using Stimulsoft.Base
@using Stimulsoft.Report
@using Stimulsoft.Report.Mvc
@Html.Stimulsoft().RenderMvcViewerScripts()
@Html.Stimulsoft().StiMvcViewer("MvcViewer1", new StiMvcViewerOptions()
{
ActionGetReportSnapshot = "FromLoadFileReport",
ActionViewerEvent = "ViewerEvent"
})
And this is the controller code, but it never hits the server:
Code: Select all
public ActionResult FromLoadFileReport()
{
StiReport report = new StiReport();
string Path = Server.MapPath("~" + ("//Content//Report.mrt"));
report.Load(Path);
report.Compile();
return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);
}
public ActionResult PrintReport()
{
return StiMvcViewer.PrintReportResult(this.HttpContext);
}
public ActionResult ViewerEvent()
{
return StiMvcViewer.ViewerEventResult(HttpContext);
}
public ActionResult Interaction()
{
return StiMvcViewer.InteractionResult(HttpContext);
}
public ActionResult ExportReport()
{
return StiMvcViewer.ExportReportResult(this.HttpContext);
}
Can you please guide with this error?