Reports.JS is a client-side library, so integrating it into a Tornado framework means serving the HTML pages that host the viewer and designer.

Host the designer page. The framework serves this template; the designer is built in plain JavaScript:
<script src="{{ static_url('scripts/stimulsoft.reports.js') }}"></script>

<script type="text/javascript">
    var designer = new Stimulsoft.Designer.StiDesigner(null, "StiDesigner", false);
    var report = new Stimulsoft.Report.StiReport();
    report.loadFile("REPORT_URL");
    designer.report = report;
    designer.renderHtml();
</script>

How it works. The framework is just a static host — the viewer and designer run entirely client-side, so integration is a matter of serving the right files.

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