Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
<stimulsoft-viewer-angular
[requestUrl]="'/Viewer/{action}'"
[action]="'InitViewer'"
[height]="'100vh'">
</stimulsoft-viewer-angular>
Server side. On the .NET Framework the MVC controller uses the Stimulsoft.Report.Mvc and Stimulsoft.Report.Angular assemblies. Note that GetRequestParams is called without arguments here (the classic MVC context is implicit):
using Stimulsoft.Report;
using Stimulsoft.Report.Angular;
using Stimulsoft.Report.Mvc;
public class ViewerController : Controller
{
public ActionResult InitViewer()
{
var requestParams = StiAngularViewer.GetRequestParams();
var options = new StiAngularViewerOptions();
options.Actions.GetReport = "GetReport";
return StiAngularViewer.ViewerDataResult(requestParams, options);
}
public ActionResult GetReport()
{
var report = new StiReport();
report.Load(Server.MapPath("~/Reports/MasterDetail.mrt"));
return StiAngularViewer.GetReportResult(report);
}
}
Apart from the classic-MVC controller signatures, the viewer behaves exactly as in the .NET samples: it initializes from InitViewer and renders the report returned by GetReport.