0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-23 16:22:58 +03:00
LimeReport/README.md

112 lines
3.8 KiB
Markdown
Raw Normal View History

2019-07-01 10:56:19 +03:00
2017-04-01 14:48:56 +03:00
LimeReport v1.4.7 [![Build Status](https://api.travis-ci.org/fralx/LimeReport.svg?branch=master)](https://travis-ci.org/fralx/LimeReport)
2019-07-01 10:56:19 +03:00
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bc31412ea4814f30825b5ed3723e9a70)](https://app.codacy.com/app/fralx/LimeReport?utm_source=github.com&utm_medium=referral&utm_content=fralx/LimeReport&utm_campaign=Badge_Grade_Dashboard)
2017-04-01 14:48:56 +03:00
-----------
Official LimeReport web site [http://limereport.ru](http://limereport.ru)
2016-03-31 04:19:36 +03:00
-----------
2019-07-01 10:59:57 +03:00
## Features
2019-07-02 23:36:05 +03:00
* Multi-platform support
* Pure Qt4/Qt5 compatible code
* Embedded report designer
* Embedded preview
* Various band types for a report of any complexity
* Page header and footer
* Data grouping (GroupHeader, GroupFooter, Subdetail, SubdetailHeader, SubdetailFooter)
* Aggregation functions (SUM, COUNT, AVG, MIN, MAX)
* Report elements: Text, Geometric (Line, Ellipsis, Rectangle), Picture
* Horizontal elements groups
* HTML to format input fields
* Scripts to format output data
* An Automatic band height adjustment
* A Smart band split moving data to the next page
* PDF output
2016-02-17 10:07:26 +03:00
2016-03-31 04:19:36 +03:00
2019-07-01 10:59:57 +03:00
## How to use it
2016-02-17 10:11:00 +03:00
1. Build limereport.pro. It will create a limereport shared library
2. In your project connect the limereport library then in source code add:
2016-02-17 10:39:17 +03:00
```cpp
#include "lrreportengine.h" to add report engine
2016-02-17 10:07:26 +03:00
#include "lrcallbackdatasourceintf.h" if you want use callback datasources
report = new LimeReport::ReportEngine(this); to create reportengine
report->dataManager()->addModel("string_list",stringListModel,true); to add datasource to report engine
report->loadFromFile("File name"); to load report template file
report->previewReport(); to generate report and preview
2016-02-17 10:39:17 +03:00
report->printReport(); to print report
```
For more samples see a demo
2016-02-17 10:07:26 +03:00
2016-02-17 10:39:17 +03:00
## Change log
2019-07-01 10:59:57 +03:00
### 1.4.7
2019-07-02 23:36:05 +03:00
1. Multipage
2. Dialogs
3. Render events
4. Initscript
5. Memory usage has been reduced
6. Datasource manager has been refactored
7. Report items context menus have been added
8. Editable report
2017-04-01 14:48:56 +03:00
And many others minor fixes and improvements
2019-07-01 10:59:57 +03:00
### 1.3.11
2019-07-02 23:36:05 +03:00
1. LimeReport project structure has been changed
2. Preview widget has been added
3. New demo has been added
4. Landscape page orientation has been fixed
5. Other minor bugs has been fixed
2019-07-01 10:59:57 +03:00
### 1.3.10
2019-07-02 23:36:05 +03:00
1. Memory leak has been fixed
2. Grid & Settings have been added
3. Recent files menu has been added
4. Magnet feature has been added
5. Added ability to use variables in the connection settings
2019-07-01 10:59:57 +03:00
### 1.3.9
2016-02-17 10:39:17 +03:00
New functions:
```cpp
QString::saveToString(),
loadFromString(const QString& report, const QString& name=""),
QByteArray::saveToByteArray(),
setCurrentReportsDir(const QString& dirName),
2016-02-17 10:07:26 +03:00
```
2016-02-17 10:39:17 +03:00
added to LimeReport::ReportEngine
2019-07-02 23:36:05 +03:00
1. printOnEach page and columns have been added to DataHeader band
2. startNewPage added to DataBand
2016-02-17 10:39:17 +03:00
Performance has been improved
**WARNING**
From this version the item "Text" by default does not use HTML.
To enable HTML support you need to use the property allowHTML
2019-07-01 10:59:57 +03:00
### 1.3.1
2016-02-17 10:39:17 +03:00
Added:
2019-07-02 23:36:05 +03:00
1. Columns
2016-02-17 10:39:17 +03:00
Some bands can be divided into columns
2019-07-02 23:36:05 +03:00
2. Items align
2016-02-17 10:39:17 +03:00
Report items now may be aligned to the left,right or center of container
also it can be stretched to the whole width of container
2019-07-02 23:36:05 +03:00
3. Group can start new page
4. Group can reset page number;
5. Table mode added to horizontal layout
2016-02-17 10:39:17 +03:00
This mode allows you to distribute the internal layout's space among grouped items
Fixed:
2019-07-02 23:36:05 +03:00
1. Postgresql connection
2. The error that prevented normal run of more than one instance of LimeReport::ReportEngine
2016-02-17 10:39:17 +03:00
2019-07-01 10:59:57 +03:00
### 1.2.1
2019-07-02 23:36:05 +03:00
1. Added buttons to open / hide sidebars;
2. Improved look-and-feel of report elements to clarify designing process;
3. Printing to PDF added.
4. Fixed bug in SQL-editor when it used variables in SQL expression;
5. Fixed bug of variable's initialization if it exists more than once in SQL expression;
6. .. and other minor bugs fixed.