[solved] Little problem with NCReport, New page ?!
hello
i am using NCReport , everything is ok ! :D
but the problem is that is when i have a lot of records , NCReportPreview run only the first page !!
example , i send a model with 60 records , in preview page i have only 46 (one page) :confused:
i didn't find anything in the NCReport doc that can help , any idea please :o
this is my code :
Code:
NCReport *report = new NCReport();
report->reset();
report->setReportFile("ncreport/reports/file.xml");
report->addItemModel( model,"model1");
report->runReportToPreview();
if ( !report->hasError() )
{
NCReportPreviewWindow *pv = new NCReportPreviewWindow();
pv->setOutput( (NCReportPreviewOutput*)report->output() ); // report->output() exists (not deleted) when preview
pv->setWindowModality( Qt::ApplicationModal );
pv->setAttribute( Qt::WA_DeleteOnClose );
pv->show();
}
thanks :)
Re: Little problem with NCReport, New page ?!
i forget :s
when i print the report to a pdf everything become fine , i have all my records with 2 pages in the pdf !!!
Re: Little problem with NCReport, New page ?!
sorry , it happens again !
i solved my problem after posting here :)
sorry !
Re: [solved] Little problem with NCReport, New page ?!
How do you use NCreport in your app. It is interessting...
And how do you solve your problem??