The Vue report viewer is backed by an ASP.NET Core controller: it initializes the viewer, serves the report, and handles viewer events.

Initialize the viewer and serve the report.
[HttpPost]
public IActionResult InitViewer()
{
    var requestParams = StiVueViewer.GetRequestParams(this);
    var options = new StiVueViewerOptions();
    options.Actions.GetReport = "GetReport";
    options.Actions.ViewerEvent = "ViewerEvent";
    return StiVueViewer.ViewerDataResult(requestParams, options);
}

[HttpPost]
public IActionResult GetReport()
{
    var report = StiReport.CreateNewReport();
    report.Load(StiVueHelper.MapPath(this, "Reports/MasterDetail.mrt"));
    return StiVueViewer.GetReportResult(this, report);
}

How it works. The Vue viewer component talks to these controller actions, so the report is served and driven entirely through the .NET backend.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.