This is a migrated thread and some comments may be shown as answers.

Suppress report

1 Answer 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dee
Top achievements
Rank 1
Dee asked on 09 Sep 2012, 07:11 PM
I have a report that consist of multiple reports.  For example.

dim rpt1 s new report1
dim rpt2 as new report2
Dim reportBook as new Telerk.Reporting.ReportBook()
reportBook.Reports.Add(rpt1)
reportBook.Reports.Add(rpt2)

if rtp1 has no detail lines then I want to be able to suppress the entire page so that the first report I added basically just doesn't show.  I wish it was as easy as just not adding the report to the reportbook but I just can't do this being I don't know yet if there are detail lines.

How can I suppress this report so that it don't show and that also the page numbering is correct?

thanks for your help.

1 Answer, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 13 Sep 2012, 07:22 AM
Hi, 
What you can do is to create your own data layer for retrieving data, so you can check if any data is available and only if data is available to create the report instance, set up the data source and add the report to the reportbook.
SN
Tags
General Discussions
Asked by
Dee
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
Share this question
or