I want to hide page header and details section if there are no more records to show. Actually if there are such number of records that can be fit on first page then second page is showing page header and empty details section. How to avoid from this?
if (ds.Tables[0].Rows.Count == 0)
crystalReportViewer1.ReportSource = null;
else
crystalReportViewer1.ReportSource =<ur data source>;
Can't you use group header instead of page header? In group options, you can set 'repeat group header on each page' - this is IMHO correct way to display column headers.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.