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

List Page Breaks

10 Answers 403 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 16 Aug 2016, 11:28 AM
Hello. I have a detail section which at one point consists of a list item (binded to an array of strings) that has just one textbox. The text in the textbox is usually very long and has to be printed on more pages. Every new string begins on a new page, what is fine to me, however, I need the very first string not to start on the new page (I need it to be right after the previous items in the detail section). Is there a way to do this? I cant use subreports (I used it and it worked fine, but there are other reasons why they cannot be used). Thank you :)

10 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 16 Aug 2016, 12:23 PM
Hi Jan,

Please test the latest Telerik Reporting version, where rows higher than one physical page are split, instead of having the whole row pushed on the next page - Installing Telerik Reporting. The List item and nested items KeepTogether must be set to false.

In case upgrading is not an option, the workaround is to switch back to SubReport items, where sub reports visualize data via TextBox items in their Detail section. Sub reports can be bound to the main report's data, if needed - How to bind Sub Report to Main Report's Data.

Regards,
Stef
Telerik by Progress
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
Jan
Top achievements
Rank 1
answered on 22 Aug 2016, 03:48 PM
Hello. So I decided to use subreports again. However, each string (subreport) should have a different header, which is just a part of the string. Header in subreport is not allowed. What is the way to achieve this?
0
Pierre
Top achievements
Rank 1
answered on 24 Aug 2016, 08:03 AM
Hi Jan,

There is multiple way to achiev ' fake header '  in a SubReport.
The easier way for me is :
     Use Label as Header/Footer
     Use Table to display the element
     Use your Datasource only on the table not on the Detail Section
 
This is a 100% WYSIWYG solution.
I give you some quick mockup of what i did using this solution.
   1rst picture is the a general solution.
   2nd picture is a mock up of one of my report.


Regards,
Pierre.
0
Jan
Top achievements
Rank 1
answered on 24 Aug 2016, 10:25 AM
Thank you for your response :) However, I still have some questions. What do you mean by "Label" since there is no such item in the toolbox (I am using VS2010)? And second question, by header I mean that I need it to be on every new page, so, will it behave in this way? 
0
Stef
Telerik team
answered on 24 Aug 2016, 04:22 PM
Hi,

Indeed you can use the GroupHeader/Footer or ReportHeader/Footer sections. Page Sections will be ignored, including PageSettings, when a report is added via SubReport item.

Regards,
Stef
Telerik by Progress
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
Jan
Top achievements
Rank 1
answered on 25 Aug 2016, 07:55 PM

Thanks for response.

When using Gruop/Report Header, the header is on every new subreport, however, I need it to be on EVERY SINGLE PAGE of the whole report (as mentioned, report is consisted of string subreports, which are really long).

 

0
Pierre
Top achievements
Rank 1
answered on 26 Aug 2016, 07:15 AM
Hi Jan,

Can the PrintOnEveryPage Propeties on GroupHeader do the trick ?

 

regards,
Pierre.

0
Jan
Top achievements
Rank 1
answered on 26 Aug 2016, 11:35 AM

Thank you very much :)

I am almost there, but now, on the first page of the subreport, the header prints twice, I dont understand why. Other pages of the subreport look fine now.

0
Pierre
Top achievements
Rank 1
answered on 26 Aug 2016, 12:31 PM
Hi,

I just can't reproduce the behave on my side, on a clean report.
Now you have 2 solution:
1/. Submit a ticket with your code and pray the old god.

2/. Publish runnable standalone sample here.
In your quest you must have alter a properties a little one and you have forget about it .
And this is the source of your issue.

Create a new sub report a clean one.
Try to reproduce the issue.
If you can reproduce it publish it here.

0
Jan
Top achievements
Rank 1
answered on 26 Aug 2016, 01:42 PM
Thank you all, the report is finally done. When I added new gruop, I forgot to set PageBreak of the detail section to none and set the footers to After. It is working now. 
Tags
General Discussions
Asked by
Jan
Top achievements
Rank 1
Answers by
Stef
Telerik team
Jan
Top achievements
Rank 1
Pierre
Top achievements
Rank 1
Share this question
or