The plugin cReports allows you to generate customized reports from selected object in QGIS.
First you need to correctly configure setting and template files.
1. Setting in setting.ini file:
reports - plugin name displayed in QGIS
countries - layer name on which the plugin runs
utf-8 - character encoding
2. In template.html file set the contents of the report containing HTML formatting.
You can use the following token values in template.html:
a) {!v:name variable!} - replaced with interactive values (from dialog box)
b) {!a:1!} - replaced with 1 - n (number of column) attribute from selected object
c) Variant substitution (case statement):
{!if(a:1=value1 )->contents…1!}- if condition
{!ef(a:2=value2)->contents…2!} - else if condition
{!df->contents…3!} - default
d) {!f:footer.txt!} - this statement includes in report content of footer.txt file. This file must be in root folder of the plugin.