Adding a Font to the Resource

Fonts can be embedded into a report as resources so it renders and exports identically on machines where the font is not installed.

Connecting to Data from Code

A report's data can be supplied entirely from code. This example builds a dataset from JSON and registers it with the report before showing it.

Creating Report at Runtime

Build the report in .NET 8.0 from code by creating its structure and configuring the required components.

Editing a Report Template in the Designer

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

Exporting a Report from Code

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

Localizing the User Interface

The WPF viewer and designer interface can be shown in different languages by loading localization files.

Printing a Report from Code

Render the report in .NET 8.0 and start the print workflow with settings supplied by the application.

Showing a Report in the Viewer

This example shows the two basic ways to display a report in a WPF application: in an embedded WPF viewer control, or in a separate viewer window.

Using a Custom Data Adapter

For a data source that is not built in, you can register a custom data adapter and use it in the WPF designer.

Using Business Objects in the Report

Reports can be bound directly to your application's business objects — collections implementing IEnumerable or ITypedList.

Using Linq in Reports

Because a report can be bound to any object collection, you can feed it the result of a LINQ query.

Using Report Variables in Code

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

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.