Integrating the Report Components into a Tornado framework
Our sample projects and report templates can help you learn the basics of working with our products.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:
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.
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>- The a Tornado framework layer only serves static scripts and templates; all report logic runs in the browser.
designer.renderHtml()— mounts the designer into the page once the report is assigned.
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.