The product license is applied from code before any report is used. This example shows where to set the license key or load it from a file.

License setup. Load or assign the license at application startup, before the first report component is created.
@Component({
    selector: "how-to-activate-the-product",
    imports: [Viewer],
    template: `<sti-viewer [report]="report"></sti-viewer>`
})

export class HowToActivateTheProduct {
    report: Stimulsoft.Report.StiReport;

    constructor() {
        // Using one of the functions below to register your license from the JavaScript code

        // Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnO...';
        // Stimulsoft.Base.StiLicense.loadFromFile('stimulsoft.key')

        this.report = new Stimulsoft.Report.StiReport();
        this.report.loadFile("Reports/SimpleList.mrt");
    }
}

Assigning StiLicense.key or calling StiLicense.loadFromFile at startup removes the trial banner; the key can be embedded as a string or kept in a separate stimulsoft.key file.

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.