Sign in Join
Wiki copytemporary

FPReport Designer

The FPReport Visual report designer

The FPReport visual report designer has the following features:

:* CSV data

:* JSON data

:* SQLDB data

:* DBF Data

The following is how it will look when working on a report:

usage

The Visual report designer is intended to be intuitive, and as such does not require a lot of explanation

Quick explanation of the menu

File

The file menu starts a new report or loads/saves a report from disk.

Edit

Copy & Paste are in the works.

Report

Bands

This can be used to add various types of bands to the report.

Elements

The elements menu can be used to add various types of elements to the report. Currently the following types are supported:

Align objects

When multiple objects are selected, this menu can be used to align them:

Resize objects

When multiple objects are selected, this menu can be used to resize them:

Data

The Report - report data menu can be used to define data sources for the report

The left side shows a list of available data sources.

The buttons above the list will (from left to right):

At the right, the configuration details of the data source are shown. This means the name, and type of data.

Depending on the type, more details can be configured.

The "preview" button at the top right can be used to show the dataset in a grid:

DBF

Only the filename can be set for a DBF data source.

CSV

For CSV data, some more details can be set:

if checked, the first line of the CSV file is expected to contain the field names.

If checked, the first line is expected to contain data, and the names of the fields must be entered, one per line, in the memo below the radiobutton.

JSON

For JSON data, there are 2 possibilities for the data source:

Depending on what is chosen, the dialog will load the file from the indicated file or download it from the URL.

The following options are still possible:

If the data is not an array, but the actuall data is in some sub-element of the data, then here a path can be entered.

The designer will make an intelligent guess at where the data is, when the file/url is opened

By default, the JSON support expects an array of objects. An array of arrays is also supported.

The grid below allows to enter the data type for each of the fields.

The designer will make an intelligent guess based on the first row in the array, but e.g. null fields will not be detected correctly.

valid types are string, integer, float and boolean

SQLDB

Any database reachable by SQLDB can be used as a data source for a report. The configuration needs 2 things:

The connection editor allows to edit the connection settings as they exist in SQLDB:

here, additional connection-specific parameters can be entered (port no. etc)

Again, there is a button to test the connection.


From the Free Pascal wiki, page "FPReport Designer", as it stood on 2018-03-08 after a change by Djzepi, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.