A report can be rendered and exported directly from code — the export format is chosen from the request and applied client-side.

Render, then export to a chosen format.
report = StiReport()

if report.processRequest(request):
    return report.getFrameworkResponse()

report.loadFile(url_for('static', filename='reports/SimpleList.mrt'))
report.render()

exportFormat = StiExportFormat.PDF   # or EXCEL, HTML, DOCUMENT
report.exportDocument(exportFormat)

How it works. Both render and export are emitted as client-side JS, so the browser produces the file without a server-rendering step.

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