hello
i am using NCReport , everything is ok !
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)
i didn't find anything in the NCReport doc that can help , any idea please
this is my 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();
}
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();
}
To copy to clipboard, switch view to plain text mode
thanks
Bookmarks