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

Panel - Show on first page only

3 Answers 771 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Thiago
Top achievements
Rank 1
Thiago asked on 26 Apr 2018, 05:38 PM
Hi, I have a panel in the body of the report that must appear only in the first page but as far as we can not use the PageNumber property outside the header/footer is there any other way to do this?

3 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 27 Apr 2018, 12:11 PM
Hi Thiago,

In general, if you want to render data only at first page of the report you might put this report items in Report Header section. For example, when you want to show information that might normally appear on a cover page, such as a logo, a title, or a date. Note that, in the Report Header section all data fields must be aggregated, even if the data source returns only one row. More information can be found in Report Structure help article.

About PageNumber object, it can be used in the expression inside the Page Footer or Page Header sections to display a page number.

Regards,
Silviya
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
Graham
Top achievements
Rank 1
answered on 12 Mar 2019, 10:42 PM
I tried this method of using the Report Header, but now when I'm using a crosstab which results in horizontal paging, it causes several extra blank pages to be inserted after the report header and before the crosstab/detail section.
0
Silviya
Telerik team
answered on 15 Mar 2019, 02:42 PM
Hi Graham,

I noticed that you've opened a support ticket on the same topic, which was answered by my colleague Todor. However, let me share his answer here as well as it might help our community members too:

"If I understood correctly, the report has a Report Header section with a Crosstab item that grows horizontally and causes horizontal page breaks in physical page formats, e.g. PDF, which results in blank pages where the content above or below the Crosstab is not occupied.

I suggest using ReportBook to avoid the blank pages due to horizontal paging. More specifically, you may implement a separate report with Crosstab for the cover page, and place the rest of the original report content in another report. Then you may combine the two reports in a Report Book. Any horizontal pagination will be limited only to the specific report in the ReportBook, hence the blank pages should be avoided.
I have attached a sample ReportBook (with the two TRDX Reports) demonstrating the approach.
The ReportBook can also have Table Of Contents - it should be defined as a separate report (not included in the example).

The observed behavior with a single report is expected, as explained in the Understanding Pagination - Horizontal Paging article section. There is no straightforward way to remove the blank pages with this approach. Generally, the report is rendered as a rectangle with particular dimensions (width x height). Upon pagination, the physical document will be generated in pages according to Report PageSettings, i.e. the Report rectangle will be split/cut in smaller rectangles. The blank pages are part of the final report document by design and cannot be removed.

We consider the requirement for removing the blank pages due to horizontal page breaks as a valid feature request, and I have logged it in our Feedback portal and voted for it on your behalf - Remove blank pages due to horizontal page breaks."


Best Regards,
Silviya
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
Report Designer (standalone)
Asked by
Thiago
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Graham
Top achievements
Rank 1
Share this question
or