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.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.