There are three steps for adding a report to a ReportBook using InstanceReportSource
- create a separate InstanceReportSource
for each report;
- assign its ReportDocument
property to an instance of the corresponding report;
- add all InstanceReportSources
to the ReportBook ReportSources
It is important to add Reports wrapped in InstanceReportSources, so that afterwards they could be cast to it.
InstanceReportSource.ReportDocument is an instance of a report, hence could be cast to the particular report type that has the custom hasData
To remove the reports where hasData
from the ReportBook you can get reference to each report source as InstanceReportSource and assign that reference ReportDocument to a report which has the hasData
property (in the snippet below represented by the ReportWithHasData class
(Collection copy of
instanceReport = TryCast(rptsrc, InstanceReportSource)
ReportWithHasData = TryCast(instanceReport.ReportDocument, ReportWithHasData)
'remove report from report book
In case the issue still persist, please open a new support ticket with attached sample with your current settings in order to investigate further.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items