I'm trying to get data from angular service to my report
report data source is named 'ds' of type Business Objects
the code I use:
Code: Select all
....
const report = new Stimulsoft.Report.StiReport();
report.loadFile('reports/Report.mrt');
this.viewer.renderHtml('viewerCont');
this.myService.get('/api/mydata').subscribe(t => {
report.regData('ds', null, t);
this.viewer.report = report;
});
Parser error: The name 'ds' does not exist in the current context
thanks