Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
@Html.StiNetCoreViewer helper and pass a StiNetCoreViewerOptions object that names the actions the viewer should call:@using Stimulsoft.Report.Mvc;
@Html.StiNetCoreViewer(new StiNetCoreViewerOptions()
{
Actions =
{
GetReport = "GetReport",
ViewerEvent = "ViewerEvent"
}
})GetReport action loads a template and returns it to the viewer; ViewerEvent handles interactive requests:public IActionResult GetReport()
{
var report = new StiReport();
report.Load(StiNetCoreHelper.MapPath(this, "Reports/TwoSimpleLists.mrt"));
return StiNetCoreViewer.GetReportResult(this, report);
}
public IActionResult ViewerEvent()
{
return StiNetCoreViewer.ViewerEventResult(this);
}StiNetCoreHelper.MapPath resolves a path inside the project. The viewer requests the report on load, renders it in the browser, and routes every further interaction (paging, zoom, export) back to these actions.