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
In Telerik Reporting, page breaks are per report section only and you cannot explicitly force a page break within a section.
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I will make this as a wish.in a newer version.
Janus S. Andersen
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..
Janus S. Andersen
GMCB | Carl Bro
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.
I suppose that by dummy section Janus meant a report group without grouping.
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.
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.
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!
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 ?
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.
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).
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?
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.