I'm using StiDesigner and StiViewer of Stimulsoft.Reports.Web.NetCore package with Angular like your "Web API with Angular" sample for StiViewer in github and as result of my debugging on StiVeiwer it is possible to send formValues to backend like below:
Code: Select all
this.options = new Stimulsoft.Viewer.StiViewerOptions();
this.options.formValues = {__ReportId: 'ReportId'};
//or this.options.routes= {__ReportId: 'ReportId'};
this.viewer = new Stimulsoft.Viewer.StiViewer(this.options, 'MainViewer', false);
this.viewer.renderHtml('viewer');
designer code:
Code: Select all
this.options = new Stimulsoft.Designer.StiDesignerOptions();
this.options.formValues = {__ReportId: 'ReportId'};
this.designer = new Stimulsoft.Designer.StiDesigner(this.options, 'MainDesigner', false);
this.designer.renderHtml('designer');