Hello everyone,
I have concerns for the passage of Date parameters in my QT program.
Indeed, during the design and test report in the designer LimeReport , everything goes well . Unfortunately, when called in a function in my program , the test values of the designer are not updated.
Someone he already solved this problem ?
Code called function
void Repport::Print()
{
report->dataManager()->clearUserVariables();
report->dataManager()->setReportVariable("DateStart",ui->dateEdit->date());
report->dataManager()->setReportVariable("DateEnd",ui->dateEdit_2->date());
report->loadFromFile("Repport3.lrxml"); //to load report template file
}
Query SQL associate
SELECT * from result where result.date_analysis BETWEEN $V{DateStart} and $V{DateEnd}