Этот пример является устаревшим, посмотрите множество других обновлённых примеров в данной категории.This example shows how to integrate the Angular report viewer and designer into a classic ASP.NET MVC application built on the .NET Framework. The Angular client is identical to the one used in .NET projects — only the server host differs.

Client side. The same viewer component is used in the template:
<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.
Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.