Adding a Custom Function to the Designer

Add a custom function to the expression engine and call it from a report template during rendering.

Changing the Designer Options

The Blazor designer is configured the same way as the viewer, through an options object and a theme.

Changing the Viewer Options

The viewer's appearance, toolbar, size and theme can all be configured. This example sets several options and a theme on the component.

Connecting to Data from Code

A report's data can be supplied and switched from Blazor code. This example loads a report and lets the user swap between two datasets.

Creating a Custom Button on the Viewer Toolbar

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

Editing a Report Template in the Designer

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

Exporting a Report from Code

A report can be exported to a file and delivered to the browser without the viewer.

Loading and Saving a Report Template

Handle the save action in WebAssembly and store or return the updated report template.

Localizing the Viewer

The viewer interface can be shown in different languages by pointing it to a localization file through the component parameter.

Showing a Report in the Viewer

Stimulsoft provides native Blazor components, so the viewer is used as a Razor tag.

Showing a Viewer without Toolbar

The viewer can be shown without its toolbar for a clean, read-only preview. This example configures viewer options and passes them to the component.

Using business objects in the report

Reports can be bound to your application's business objects. This example registers a business object collection and opens the report in the designer.

Using Report Variables in Code

Report variables can be set from Blazor, for example from a text box, and the viewer updates to reflect them.

Using SQL Data Sources

In a Blazor WebAssembly app the browser cannot reach a database directly, so SQL data is fetched through a server API.

Using User Data in Reports

The StiUserData source lets a report pull data from arbitrary application code through an event.

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.