The onOpenedReport event lets you modify a report — or swap it entirely — on the server before it reaches the browser.

Change the report in the event.
def openedReport(args: StiReportEventArgs):
    # Change a field of the opened report...
    args.report['ReportAlias'] = 'Report Alias from Server-Side'

    # ...or replace it with another template
    with open(filePath, mode='r', encoding='utf-8') as file:
        args.report = file.read()

viewer.onOpenedReport += openedReport

How it works. The report can be adjusted server-side per request, so the same view can tailor or substitute the document before display.

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