I manage my request changing the "pathData" of my report.
The follow code was get by the publish page of stimulsoft site (https://publish.stimulsoft.com), and modified the pathData:
Code: Select all
import { Component } from '@angular/core';
import { ViewEncapsulation } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
declare var Stimulsoft: any;
@Component({
selector: 'app-root',
template: `<div>
<h2>Stimulsoft Reports.JS - MockTest_ReportLivroDiario.mrt - Viewer</h2>
<div id="viewerContent"></div>
</div>`,
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
options: any = new Stimulsoft.Viewer.StiViewerOptions();
viewer: any = new Stimulsoft.Viewer.StiViewer(this.options, 'StiViewer', false);
ngOnInit() {
var report = Stimulsoft.Report.StiReport.createNewReport();
report.loadFile("reports/MockTest_ReportLivroDiario.mrt");
var dbMockTest = report.dictionary.databases.getByName("MockTest");
dbMockTest.pathData = "https://api.test.com//mock-test";
this.viewer.report = report;
this.viewer.renderHtml("viewerContent");
}
constructor(private http: HttpClientModule) {
}
}