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

subreports and page break

9 Answers 1412 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 02 Feb 2009, 03:53 PM
Hi all,

I am trying to add different subreports (for ex. report1, report2) programmatically, but I couldn't placed each subreport as a new page. I just want to have each subreport in a new page. I tried to set pagebreak to "before", but it didn't work. Do you have an example for that? Thank you

9 Answers, 1 is accepted

Sort by
0
Jacob
Top achievements
Rank 1
answered on 04 Feb 2009, 04:47 AM
Hi again,

I can really use an example on this issue.

Thanks in advance.
0
Steve
Telerik team
answered on 04 Feb 2009, 12:32 PM
Hi Jacob,

PageBreaks are per section only and therefore if you want to have each subreport on a separate page, you should make sure that the reports used as subreports have their detail sections with enough height to occupy a single page.

Sincerely yours,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jacob
Top achievements
Rank 1
answered on 05 Feb 2009, 03:49 PM
Hi Steve,

Thank you for the reply, but no matter what I do, I couldn't achieve my goal. I even set the subreport location, but no luck. Do you have an example project or source code for this issue? I appreciate for all your help.

Thank you.
0
Steve
Telerik team
answered on 05 Feb 2009, 04:53 PM
Hello Jacob,

I just noticed that you are in a web context and unfortunately this is not possible in html. As noted in our "Design Considerations for HTML Rendering" help article, report sections cannot be split and therefore KeepTogether is always true  - this is due to the fact that html is not a page oriented format.
So basically you have a single section with 3 subreports in it and they would be rendered as a single page, because each report section is rendered as a separate HTML table and KeepTogether is always true.

Let us know if you have other questions/problems.

All the best,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kris
Top achievements
Rank 1
answered on 17 Aug 2010, 04:31 PM
Hi Steve, I have run into a problem with tables being split up on separate pages. I have a report of 11X17 size. I have a subreport with photo details, and photos themselves in a table. The problem I am having is that the table in the subreport table is being split up between pages (i.e. part of the photo is on one page, and the rest of the photo is on the next page).

Is there a way to determine, during the rendering stage, if a table has enough room to fit on the current page? If not, I would like to push down the start of the table to the next page(i.e. put a page break before the table gets rendered).

I have messed around with the KeepTogether property but that does not seem to adjust anything. I have also tried to adjust the location during the table_ItemDataBound event, but the location of the table says it is x=0, y=0.

Do you have any ideas on how to accomplish this?

Thanks in advance. I have attached a jpeg of the pdf of the current output. As you can see the second photo is split between pages. 

Kris
0
Steve
Telerik team
answered on 19 Aug 2010, 09:54 AM
Hello Kris,

Based on the screenshots you have provided, we can only guess how your table is setup exactly, so in order to provide an accurate reply we would need a sample report.
Generally the correct way to handle such case is to set the GroupKeepTogether property of the respective group to True. However in case you only have a detail group, it would not have a report item by default and this is currently required for this functionality to work. What you can do is add a parent group to your table (it would contain a report item), delete the grouping criteria and alter the GroupKeepTogether to True.
If still having problems, please open a support ticket and attach a sample report that we can look into.

All the best,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
chinnasamy
Top achievements
Rank 1
answered on 08 May 2013, 04:51 AM
Hai Kris,
I want This Code please help me be urgent.
   Thank you
Regards
K.Chinnasamy.
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 10 May 2013, 11:18 AM
What code?
0
gajjala
Top achievements
Rank 1
answered on 08 Feb 2019, 11:48 AM

Hi Steve's 

  If you don't mine can u please show me an example to  add a new page to the existing page in iReport.

 

Tags
General Discussions
Asked by
Jacob
Top achievements
Rank 1
Answers by
Jacob
Top achievements
Rank 1
Steve
Telerik team
Kris
Top achievements
Rank 1
chinnasamy
Top achievements
Rank 1
Hadib Ahmabi
Top achievements
Rank 1
gajjala
Top achievements
Rank 1
Share this question
or