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

Loading reports into a main report

1 Answer 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex Russak
Top achievements
Rank 1
Alex Russak asked on 09 Jul 2010, 12:51 AM
Hello, I'm trying to load small reports into a larger report. However the full report has lots of whitespace that shouldn't be there.

This base report has our company logo and some other information.

Is my logic wrong for adding reports to a base report?

           private void LoadReports(List<Report> reports)
        {
            foreach ( Report report in reports ) {
 
                if ( report != null ) {
 
                    SubReport sr = new SubReport();
                    sr.ReportSource = report;
                    this.detail.Items.Add(sr);
                }
            }
        }

I've checked the small reports, and each one only takes up their correct amount of space. I checked it by making the background color different from the main report.

Thanks in advance for any advice/help.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Jul 2010, 06:39 PM
Hi Alex Russak,

Size
and Location properties are mandatory. Please set a Location in order to avoid items overlapping that will result in items being rendered over the right page margin causing a new (blank) page to be created.

Best wishes,
Peter
the Telerik team
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Alex Russak
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or