Hi Paul.
You can use default application connection.
If you check "use default application connection" in connection settings,
report engine will get default application connection.
Possible i will add LimeReport::DataSourceManager useDBConnection( QSqlDatabase db) and it will be initialize default report connection.
What about variables, if you defined variable in designer it will save variable value to the report file and you have to reinit variable value after load report.
Possible i have to change it behaivor but at the moment it works just like this.
engine.dataManager()->setReportVariable("PMP_DB", getenv("PMP_DB"));
engine.dataManager()->setReportVariable("PMP_DB_HOST", getenv("PMP_DB_HOST"));
engine.dataManager()->setReportVariable("PMP_DB_USER", getenv("PMP_DB_USER"));
engine.dataManager()->setReportVariable("PMP_DB_PASSWD", getenv("PMP_DB_PASSWD"));
I have checked and it works for me. Could you send me a sample report template ?
And one more thing: if you describe some connection in the report template and connection with the same name already exists limereport won't create new connection it will uses exists