Skip to content

An Avalonia app that loads a report from a file, configures the report to retrieve JSON data from a specified URL, and exports the report to PDF.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/reporting-avalonia-get-started

Repository files navigation

Reporting for Avalonia - Get Started

This example shows how to load a report from a file, configure the report to retrieve JSON data from a specified URL, and export the report to PDF.

Implementation

The previously created report that uses JSON data from the https://northwind.netcore.io/customers.json location is saved to a report layout file (*.repx). If you are using VSCode Avalonia Extension to develop Avalonia-based apps, you can also install the DevExpress Report Designer VSCode Extension to run the Report Wizard that enables you to create, edit, and save a report.

The report created earlier using JSON data from https://northwind.netcore.io/customers.json is saved to a report layout file (.repx ). If you're using the VSCode Avalonia Extension to develop Avalonia-based applications, consider installing the DevExpress Report Designer VSCode Extension. This extension allows you to run the Report Wizard and makes it easier to create, edit and save reports.

To open a report layout file (*.repx) at runtime, add it to the Avalonia Assets folder in the project.

Register a custom IJsonSourceCustomizationService service for the report instance to fetch JSON data dynamically. For Avalonia browser project, ensure to execute our native JsonLoaderHelper.ConfigureHttpClient and JsonLoaderHelper.ConfigureHttpRequestMessage methods at startup to pass credentials in the JSON data request.

Reporting for Avalonia Get Started

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

An Avalonia app that loads a report from a file, configures the report to retrieve JSON data from a specified URL, and exports the report to PDF.

Topics

Resources

License

Stars

Watchers

Forks