Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to print DetailBand a particular amount of times irregardless of the number of records in a report datasource

$
0
0

Sometimes, it is necessary to print a detail section a particular number of times even if the underlying DataSource contains a less number of records. The current version of XtraReports does not allow one to print this section more times than the number of records.

As a solution for this task, you can clear the report's DataSource and DataMember properties, set the DetailPrintCountOnEmptyDataSource property to the necessary number, and then populate the detail section data manually using the DetailBand's BeforePrint event.

This example demonstrates this approach in action.

See also:
How to repeat the Detail report band multiple times (a data-bound report)


Viewing all articles
Browse latest Browse all 7205

Trending Articles