FastReport Desktop includes a console report builder.
Report Builder is a console utility for automating operations on reports.
It can perform the following operations:
The report builder is closely associated with the Configurator, which creates special configuration files with instructions. These instructions allow you to specify the export of the report, select the location where the report will be saved, and send reports by email. The builder receives these instructions and executes them on a schedule, which in turn is created in the Scheduler.
But nothing prevents working with the builder directly through the command line. This can be useful if you want to export or send reports from your own application.
Let's look at three options for interacting with the Report Builder:
"Builder.exe path/to/config.xml"
Here, as you see, calling a builder with one parameter: the path to the configuration file;
"Builder.exe path/to/config.xml --Save-Path=./dir"
That is, to override the attribute, use the following pattern:
--{command name}-{parameter name}={value}
It turns out like this:
--Save-Path=./dir
--Report-Path="report.frx" --Export-As=image --Export-ImageFormat=Jpeg --Export-JpegQuality=80 --Save-To=folder --Save-Path ="path/to/folder"
Note that we used the command Export three times. For each export property that you want to override (as opposed to the default values), you need to write the command name. In this way, you can define any parameter available in the Configurator. A complete list of commands and properties (attributes) can be found in the documentation for FastReport Desktop.
So, we have considered various options for working with the console report builder. Now you can use it in combination with your programs, you just need to transfer a set of parameters.