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

It there a way to put in a foced page break in detail

16 Answers 897 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Janus Pedersen
Top achievements
Rank 2
Janus Pedersen asked on 12 Feb 2009, 01:09 PM
Hi
Is there a way to put in a page- break in detail. I don`t mean to put the property PageBreak to After and so, but to put in a page-break element in the detail.items.add(...)- metode.

I am using VS2008, telerik Q3 2008 the newest officel build.

It shold force the page to break and I will use it to control the pages att runtime.

Janus S. Andersen

16 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 12 Feb 2009, 01:18 PM
Hello Janus,

In Telerik Reporting, page breaks are per report section only and you cannot explicitly force a page break within a section.

Kind regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Janus Pedersen
Top achievements
Rank 2
answered on 12 Feb 2009, 01:21 PM
Thanks Steve
I will make this as a wish.in a newer version.

Janus S. Andersen
0
Roy Zolnoski
Top achievements
Rank 1
answered on 07 May 2010, 09:13 PM
Is there any way to do this in the Q1 2010 release? If not is there a plan to include a PageBreak control in a future release or some other way to control the pagination of reports?
0
Janus Pedersen
Top achievements
Rank 2
answered on 08 May 2010, 08:23 AM
It is not in 2010 release but it is in the sektion. Break after.

If you put in a dummy section and set the the BreakAfter (it is a property on the section control). That will make a page break. Remember to set the height of the section to somthing small. When you will insert the section then just set the dock to TOP on section and insert it in the report..

Best Regaards
Janus S. Andersen
GMCB | Carl Bro
Denmark
0
Edward
Top achievements
Rank 1
answered on 26 Aug 2011, 04:05 AM
Janus;

How do you put in the "dummy section".  I really need a page break in a specific areas of a very long report in the detail section.
Thank you,
Edward
0
Squall
Top achievements
Rank 1
answered on 26 Aug 2011, 04:03 PM
Edward:
I suppose that by dummy section Janus meant a report group without grouping.
SN
0
Edward
Top achievements
Rank 1
answered on 27 Aug 2011, 02:00 AM
Yep! Adding additional group header sections that contain what one would have on a page and set page breaks for that section is the solution.  Just add groups form the Data section of the properties with the report selected.
Thanks peeps!
Edward
0
Janus Pedersen
Top achievements
Rank 2
answered on 27 Aug 2011, 10:02 AM
Hi
It is easy to use the designer and add a section in the report. Just click on the section and set the property. In my project I just add a section in the code and in this section set the pageBreak property. But remember to set the with and hight to somthing small and set dock to top. The dock to top will force the section to dock top and hopefuly put it to the end off the report.

Remember that the report builing is event driven and it is a way to put in the section and there by the PageBeak in a Event. I have build a realTime report design where I just put in the header of the report and then the dataheader and bind the data by setting the source for the hole report. For each feild in the report I have all the rules for this field and for the report the rest. I just put in grupping att runtime. It is smart to build a runtime lib to make report. Use the report designer to learn the code for the report, but make a framework for your firm to build simpel small report.

Best Regaards
Janus Pedersen
Denmark 
0
Edward
Top achievements
Rank 1
answered on 27 Aug 2011, 11:01 PM
Janus;

Thank you for your additional comments.
For me, this report, I have page sized dimensions for the groupheadersection1, groupheadersection2 and groupheadersection3 while the groupfootersections are unused and tweaked to small to notice.

Not sure what you mean by docking.  Guess I have learned about that yet.  I know the concept, but have not seen in any properties that I've been working with yet. Sounds handy.

thanks again,

Ed
0
Michael
Top achievements
Rank 1
answered on 22 Jan 2013, 12:25 PM
I may be being really thick here, but how does adding a new group section help me insert a page break at a specific point within the detail section? If I add a new group section it just sits above the detail section - I can't move it to the point where I need a page break to be inserted, can I?

This is a really frustrating issue, made worse by the fact that if I shuffle objects down the page to try to force them on to the next page, they won't push objects underneath them down as well, so you soon end up with a complete mess of objects stacked on top of each other.  The layout designer really leaves a lot to be desired!
0
Georges
Top achievements
Rank 1
answered on 07 Jun 2016, 02:57 PM

Hi, sorry to bring the post back to life but i have the same issue, Janus you say:
"It is easy to use the designer and add a section in the report"

But how do you do that, i've found how to add groups, but groups just add headers and footers, but i need an independant section, i have my report divided in three parts (summary, details, annexes). Today the three sections are in the main detail section, but i need the annexe to be in a separated page. Can you tell me how to do that ?

"I will make this as a wish.in a newer version"

After 7 years did you add it ?

Thanx

0
Katia
Telerik team
answered on 08 Jun 2016, 03:32 PM
Hello Georges,

Depending on how you want to treat the data in your report you can place it in different report sections. For example, if it needs to be grouped - add a group and place the data into Detail section; if it needs to be displayed as a header or footer - place it in header or footer sections.
The specifics of different sections are described in Report Structure help article.

In common scenario, annexes are placed at the end of the main document. Thus, you can place it in ReportFooter or GroupFooter section of the group that is the highest level in and set PageBreak=Before for this section to show the annex on a new page.

Note, that page breaks will appear only when you view the report in Print preview - Interactive vs. Print Layout.


Regards,
Katia
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
Doug
Top achievements
Rank 1
Veteran
answered on 16 Nov 2016, 02:20 PM

Another tip that can help in certain cases is to use a Panel object to encapsulate the objects within the same Report Section you want to "KeepTogether" on one page.  If there isn't enough room on the page for the Panel contents, it will all move to the next page (provided the contents are not longer than one page in total).

0
Travis
Top achievements
Rank 1
answered on 28 Jun 2018, 11:34 PM

Maybe I'm a little slow, or easily confused, but none of this makes sense to me.

I have a report with 3 "sections":
 - Page Header
 - Details Section
 - Page Footer

In the Details Section, I have 3 tables. 2 of the tables will fit on one page with no issues. The 3rd table will be rather long and span multiple pages. I would like the 3rd table to start on a new page. Knee jerk reaction tells me to go to Insert and find a nice little button that says "Page Break" just before the 3rd table. Alas, no button exists. Next I check the table properties for PageBreak, but nothing there either. So I do some research and everything points me to adding "Groups".

When I add a group, I get a new section for group header and one for group footer. The detail section stays right in the middle. Am I now supposed to move the 2 tables that I want on the first page into the group header and set "PageBreak" to "After", leaving the 3rd table in the Details Section and resize the group footer to 0 then ignore it completely?

 

0
Nasko
Telerik team
answered on 03 Jul 2018, 11:57 AM
Hello Travis,

If the report itself will not be connected to a data source (Report.DataSource property is not set) then you can use any number of static group header/footer sections to position the tables as desired.
For example, add a new static group (static means a group with a constant non-changing expression such as the string "none"). Hide the detail section by setting its Visible property to False. Place Table1 and Table2 inside the group header section and Table3 inside the group footer section. Then set the group footer section PageBreak property to Before. This configuration should produce the described output.

Regards,
Nasko
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
Travis
Top achievements
Rank 1
answered on 03 Jul 2018, 02:35 PM
Thanks Nasko. The route I went was to hid he group headers and use group footers to add additional content that needs page beaks before.
Tags
General Discussions
Asked by
Janus Pedersen
Top achievements
Rank 2
Answers by
Steve
Telerik team
Janus Pedersen
Top achievements
Rank 2
Roy Zolnoski
Top achievements
Rank 1
Edward
Top achievements
Rank 1
Squall
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Georges
Top achievements
Rank 1
Katia
Telerik team
Doug
Top achievements
Rank 1
Veteran
Travis
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or