LimeReport/README.md

18 lines
688 B
Markdown
Raw Normal View History

2016-02-17 10:07:26 +03:00
# LimeReport
##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:07:26 +03:00
```C
#include "lrreportengine.h" to add report engine
#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
report->printReport(); to print report
```
2016-02-17 10:11:00 +03:00
For more samples see a demo