Changing an Export Settings on the Server-Side

Export settings can be adjusted on the server when the user exports from the viewer, through the onBeginExportReport event.

Changing the Viewer Theme

Set up the report viewer in Python, load a template, and connect the component to the application.

Configuring and Installing Node.js

The server-side engine relies on Node.js, which the SDK can install for you. This example installs Node.js and updates the required packages.

Editing a Report Template in the Designer

Embed the report designer in Python, load a template, and connect its editing and save actions.

Editing a Report Template in the Designer in an HTML template

The designer's scripts and body can be emitted separately to fit your own HTML template, just like the viewer.

Exporting a Report from Code

Render the report in Python and export it directly from code, without opening the viewer.

Exporting a Report from Code on the Server-Side

Server-side rendering can be followed by a server-side export. This example renders a report with the Node.js engine and exports it to a file.

How to Activate the Product

By default Reports.Python runs in trial mode (with a watermark). This example shows how to apply your license key to remove it.

Loading Scripts in Part to Minify Project

Load the report template in Python and pass it to the next viewing, rendering, or export operation.

Localizing the Designer

Embed the report designer in Python, load a template, and connect its editing and save actions.

Opening the Report in the Viewer and Changing it on the Server-Side

Handle onOpenedReport in the Python viewer to modify a report before it reaches the browser.

Registering a Data from Code

Prepare the data in Python, register it in the report dictionary, and render the template with those records.

Registering Data when Creating a New Report

When a user creates a new report in the designer, you can automatically register data for it through the onCreateReport event.

Rendering a Report from Code

A report can be rendered from Python code and its result inspected or shown. This example renders a report and reacts when rendering completes.

Rendering a Report from Code on the Server-Side

Reports.Python can render reports fully on the server using an embedded Node.js engine, with no browser involved.

Saving a Report Template on the Server-Side

When the user saves in the designer, the template is sent to the server where you decide how to store it.

Sending a Report by Email

Create the document in memory in Python and send it as an e-mail attachment without leaving a temporary file.

Sending an Exported Report to the Server-Side

When the user exports a report, the result can be sent back to the server and saved.

Setting Report Variables on the Server-Side

Load the report template in Python, assign its variables from application code, and continue with rendering.

Showing a Report in the Viewer

Stimulsoft Reports.Python is a native Python library that renders reports and outputs the JavaScript viewer into your web page.

Showing a Report in the Viewer in an HTML template

When you build the page with your own HTML template, the viewer's scripts and body can be emitted separately so they fit your layout.

Using Parameters in SQL Query

SQL queries can use parameters whose values you set on the server. This example supplies a parameter value in the onBeginProcessData event.

Working with onDesign and onExit events

The viewer and designer can be combined into one edit-and-preview workflow using their onDesignReport and onExit events.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.