Report generator FastReport. Net report usage principles

FastReport .Net is a full-featured report solution for Windows Forms, ASP.NET, MVC and .NET Core. It can be used in Microsoft Visual Studio 2005-2019. Support .Net Framework 2.0-4.x, .NET Core 3.0 and above.

In the new version of FastReport .NET 2021.1, we have implemented support for .NET 5. Added a new barcode-Deutsce Post Leitcode. The algorithm for converting RTF into report objects has been significantly improved. And also added new functions for converting numbers. Welcome to download and experience. (Click the button below to download)

Click to download the latest version of FastReport.NET v2021.1 now

Fundamental

In this chapter, we will learn the principles of using reports in FastReport. We will also take a closer look at report elements such as report pages, bands, and report objects.

Report

The report generation process can be expressed as:
Insert picture description here

Report template-this is what we see in the designer. The report is saved in a file with the extension .frx. The report can be created with the help of the designer or programmatically.

The data can be arbitrary: this is data defined in the program, or data from a DBMS (such as MS SQL). FastReport can also use business logic objects (hereinafter referred to as business objects). Prepared report-this is what we see in the preview window. The prepared report can be previewed, printed, saved in one of the supported formats (.doc, .xls, .pdf, etc.), or sent by email.

Report designer

In order to create a report template, you need to use the report designer. The designer provides users with comfortable facilities for designing reports and allows simultaneous previewing of reports.

The report designer is a composite part of FastReport and does not depend on the development environment (such as MS Visual Studio). If you are a software developer, you can include the report designer in your application. This will enable your end users to change an existing report or create a new report.
Insert picture description here

Report options

The window with report options can be called in the "Report|Options..." menu. You will see a dialog window with several tabs:

Insert picture description here

On the "General" tab, you can control the following report parameters: The
"Double pass" parameter allows two report channels to be enabled. This is necessary when you use the "Total Pages" system variable; the
"Compress report file" parameter allows the report to be saved in a compressed form. For compression, use the zip algorithm, which is why you can easily extract the original content from any archive with the help; the
"Use file cache" parameter allows to save memory when creating reports. If your report has many pages, use this parameter;
"Convert null values" controls the conversion of null value data columns to default values ​​(0, empty string, false-depending on the data type of the column);
"Text quality" parameter allows Choose how to display the text in the report. This mode does not affect the printed report; the
"Smooth graphics" parameter allows the smoothing mode to be enabled when drawing graphics objects (lines, borders, pictures).
On the "Description" tab, you can give a description of the report. All these parameters are not mandatory, they are just for information:

Insert picture description here

On the "Script" tab, you can select the script language of the report. The detailed scripting work can be found in the "Scripting" chapter.
On the "Security" tab, you can give the password required to open the report. The report with password is saved in encoded form, so don't forget the password! In this case, it is practically impossible to recover the report.

On the Inheritance tab, you can control report inheritance. This function will be discussed later.

Guess you like

Origin blog.csdn.net/RoffeyYang/article/details/112983243