I have an MVC Viewer for displaying my bussiness object data:
Code: Select all
@Html.Stimulsoft().RenderMvcViewerScripts()
@Html.Stimulsoft().StiMvcViewer(
"Reports",
new StiMvcViewerOptions() {
Controller = "List",
ActionGetReportSnapshot = "GetReportSnapshot",
ActionViewerEvent = "ViewerEvent",
ActionExportReport = "ExportReport",
ActionPrintReport = "PrintReport",
Width = Unit.Percentage(100),
Height = Unit.Pixel(1300),
ClientRequestTimeout = 900000,
BackColor = Color.DarkGray,
MenuShowMode = StiShowMenuMode.Click,
MenuViewMode = StiWebViewMode.OnePage,
MenuAnimation = false,
ShowButtonBookmarks = false,
ShowButtonParameters = false,
ShowButtonDesign = false,
}
private StiReport GetReport(ListModel model)
{
var docs = model.GetDocsStimulSoft();
using(var report = new StiReport())
{
report.Load(MrtFilePath);
report.RegBusinessObject("Document", "Document", docs);
return report;
}
}
public ActionResult GetReportSnapshot(ListModel model)
{
return StiMvcViewer.GetReportSnapshotResult(HttpContext, GetReport(model));
}
)
So I get only 2 pages instead of let's say 200.
Is there a limit setting somewhere?
When I was doing the same with SQL query stored in the MRT file I didn't have such problems.
Thanks.