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

Empty space between report header and detail section

3 Answers 579 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ytnytn1
Top achievements
Rank 1
ytnytn1 asked on 27 Jun 2017, 03:13 PM

Hello Telerik team!

I have a simple wpf report where there are detail section and report header. When report had been generated, an empty space appeared between them. I've tried to change this behavior by moving header items to detail section or by creating a sub report from detail section items. Also I've tried to set KeepTogether option in false condition where it was possible in detail section, but it had no effect.

If I use preview mode, everything is fine. I've colored every element in the report to see whether it grew up or not. But all of them seem to be fine. What can I do to avoid this problem? I've attached some screenshots with the report.

I will really appreciate if you can help me to figure this behavior out.

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 27 Jun 2017, 04:10 PM
Hi ytnytn1,

The design-time preview of the Report is correct, where the preview is in Interactive Mode.
In the XAML preview in the WPF ReportViewer, the content seems to be placed on separate pages where the viewer's ViewMode is set to PrintPreview.

Please check the report layout and if a section in the report has its PageBreak property set directly or via Bindings. Check also if the report gather's in the space defined by the report's PageSettings properties - Page Setup. There might occur horizontal paging in case the content is too wide.

Regards,
Stef
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
0
ytnytn1
Top achievements
Rank 1
answered on 28 Jun 2017, 02:44 AM

thanks for replying.

In Interactive Mode report has one page. All PageBreak properties set to none. The report width is static and less than page width. I noticed that if table in detail section has 1 or 2 rows, report is not paged. It seems to be report processor tries to place all detail's items in one page, but KeepTogether is set to false.

0
Stef
Telerik team
answered on 29 Jun 2017, 01:58 PM
Hi ytnytn1,

The screenshot is of a Print preview of the report, where the document gathers in the space defined by the report's PageSettings properties.

To determine which item causes the blank page to appear, please test the suggestions from Problem: Telerik Reporting renders blank pages. Test adding borders and background colors to items and sections to trace them. When you determine which item causes the inaccurate paging, test setting KeepTogether to false for it, its parent and all nested items.

Regards,
Stef
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
ytnytn1
Top achievements
Rank 1
Answers by
Stef
Telerik team
ytnytn1
Top achievements
Rank 1
Share this question
or