I have a question concerning the removal of a page from a reportbook at runtime.
I have a custom reportbook class that is defined as a set of report pages.
Now, for a subset of my objects, no summary page is required, so I'd like to, based on a condition in the bound data object, programatically delete it from the book.
I've gotten the desired results by creating another reportbook class and removing the pages that I don't want, but given that the Reports for the 3 of the 4 pages are the exact same and all I want to do is remove a page, is there a way to do this?
Thanks
I have a custom reportbook class that is defined as a set of report pages.
public class MyReportBook : ReportBook
{
public MyReportBook()
{
this.Reports.Add(new CoverPage());
this.Reports.Add(new DetailPage());
this.Reports.Add(new SummaryPage());
this.Reports.Add(new MonthlyBreakoutPage());
}
}
Now, for a subset of my objects, no summary page is required, so I'd like to, based on a condition in the bound data object, programatically delete it from the book.
I've gotten the desired results by creating another reportbook class and removing the pages that I don't want, but given that the Reports for the 3 of the 4 pages are the exact same and all I want to do is remove a page, is there a way to do this?
Thanks