Insert pagebreak in details section

1 Answer 1055 Views
General Discussions
Ken
Top achievements
Rank 1
Ken asked on 27 Jul 2017, 04:55 AM

Hi,

I am writing an application to create controls (textbox, panel, etc) in the detail section according to command file. The command file may contain page breaks to force controls to be rendered in a new page. Responses from similar posts range from using Group, Sub Report to ReportBook. The content generated from command file should go into a single report as the page setup is the same. What is the best implementation option? A pointer to an example would be very useful.

Thanks,

Ken

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 28 Jul 2017, 12:51 PM
Hello Ken,

To force a page break in reports, you can use PageBreak property which is available for report sections only. Otherwise, the page break will be inserted depending on the page size, margins, the size of the report items/sections and their KeepTogether properties.
For more details on the paging behavior of reports, check Understanding Pagination help article.

Using a ReportBook might be another option as each report will start from a new page. However, if you need to use a single report in your scenario then my suggestion is to use report sections and set their PageBreak properties.

Depending on the logic where the page should break, you can use different sections: Group Header/Footer if the report needs to show grouped data (you can also add a static group), Report Header/Footer.

Feel free to attach a report and a sample data in a support ticket so we can provide you more accurate suggestions.


Regards,
Katia
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
Ken
Top achievements
Rank 1
commented on 28 Jul 2017, 04:07 PM

Hi Katia,

I'd need to create different sections/group as you suggested dynamically. Is there sample code I can reference?

Thanks,

Ken

Katia
Telerik team
commented on 02 Aug 2017, 09:36 AM

Hi Ken,

Creating and modifying reports with code is not recommended in general - check our considerations on this topic in Modifying or Creating a report at Run-Time KB article.

In case, there is a specific need to modify reports with code our recommendation is first to test your scenario in Visual Studio Report Designer. The code generated in Report.Designer.cs file can be used as an example and modified according to your scenario.


Regards,
Katia
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
AP
Top achievements
Rank 1
Veteran
commented on 24 Jun 2020, 11:20 AM

Hi,

I have one list and one table in telerik reporting. Data source assigned for list. For each record i need to generate the table. The table is located below the list. After the table i need page break. I tested with group header section. But it not working the page break. Please suggest.

AP
Top achievements
Rank 1
Veteran
commented on 24 Jun 2020, 11:27 AM

Hi,
I have one list and one table in telerik reporting. Data source assigned for list. For each record in list, i need to generate the table. The table is located below the list. After the table i need page break. I tested with group header section. But it not working the page break. Please suggest.
Katia
Telerik team
commented on 29 Jun 2020, 08:25 AM

Hello,

Test using PageBreak property of the List's detail group. You can access the group properties from the Group Explorer.

 

Regards,
Katia
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
AP
Top achievements
Rank 1
Veteran
commented on 09 Jul 2020, 09:12 AM

Hi, I can see GroupKeepTogether property in the list's detail group. I have checked with that also. But the page break is not working. Now what i can i do?

Thanks,

AP

Katia
Telerik team
commented on 14 Jul 2020, 04:19 AM

Hello,

I am not sure about the exact settings of the report and its structure. Therefore, I cannot be certain why the PageBreak property is not working. Is it possible to send us the report in a support ticket so we can test it on our side? You can send the ticket from your Telerik account that has an active trial license.

 

Regards,
Katia
Progress Telerik

Tags
General Discussions
Asked by
Ken
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or