0

I need clear the prepared report before or after calling frxReport->PrepareReport();

My report is a continuos report.

Ex.

//Clear here
for( Data->First(); ! Data->Eof; Data->Next() )
{       
    frxReport->PrepareReport(false);
}

frxReport->ShowPreparedReport();
//Or Clear Here.
4

1 回答 1

0

PrepareReport(True)将清除先前准备的报告。

尝试这样的事情......

int reportCount = 0;
for( Data->First(); ! Data->Eof; Data->Next() )
{   
  Inc(reportCount);    
  frxReport->PrepareReport(reportCount == 1); 
}
frxReport->ShowPreparedReport();

这样,第一个报告将导致PrepareReport()清除所有内容,而后续报告将添加到末尾。

于 2018-01-22T14:13:28.210 回答