This example is outdated, you can check out the many other new examples in this category.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.
By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.