Difference between revisions of "FPReport Designer"

From Lazarus wiki
Jump to navigationJump to search
Line 22: Line 22:
 
* Same for functions
 
* Same for functions
 
* ctrl-drag will create a selection rectangle
 
* ctrl-drag will create a selection rectangle
+
* shift-click can be used to select multiple elements
 
+
* Move the selection using arrow keys (shift to use bigger step)
 +
* Resize the selection using ctrl-arrow keys (shift to use bigger step)
  
 
Quick explanation of the menu
 
Quick explanation of the menu
Line 65: Line 66:
 
* Resize dialog will show the resize dialog
 
* Resize dialog will show the resize dialog
 
* All other elements just perform the requested resize operation on the selection.
 
* All other elements just perform the requested resize operation on the selection.
 +
 +
== Data ==
 +
The Report - report data menu can be used to define data sources for the report

Revision as of 17:59, 24 June 2017

The FPReport Visual report designer

The FPReport visual report designer has the following features:

  • Design a report from scratch using a visual editor.
  • Define variables
  • Load/Save report to/from a JSON file
  • Connect data to the report
  • CSV data
  • JSON data
  • SQLDB data
  • DBF Data
  • Preview data
  • Export data to known exporters (PDF, Image, HTML)

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

fpreport designer main.png

usage

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

  • To add a data field to a band: drag and drop ot from the data tree view no the right.
  • Same for functions
  • ctrl-drag will create a selection rectangle
  • shift-click can be used to select multiple elements
  • Move the selection using arrow keys (shift to use bigger step)
  • Resize the selection using ctrl-arrow keys (shift to use bigger step)

Quick explanation of the menu

File

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

  • New - speaks for itself
  • Open report - load a JSON file with a report from disk.
  • Save Report - save report to a JSON file.
  • Quit - exit the report designer

Edit

  • Delete - delete the selection

Copy & Paste are in the works.

Report

  • Add Page : Add a new page to the report.
  • Properties: set author, 2-pass, title.
  • Report data : To manage data sources.
  • Variables: define variables which can be used in expressions

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:

  • Memo
  • Shape
  • Image
  • Checkbox

Align objects

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

  • Align will show the align dialog
  • All other elements just perform the requested alignment on the selection


Resize objects

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

  • Resize dialog will show the resize dialog
  • All other elements just perform the requested resize operation on the selection.

Data

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