subreports and page break

10 posts, 0 answers
  1. Jacob
    Jacob avatar
    10 posts
    Member since:
    Sep 2008

    Posted 02 Feb 2009 Link to this post

    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
  2. Jacob
    Jacob avatar
    10 posts
    Member since:
    Sep 2008

    Posted 03 Feb 2009 Link to this post

    Hi again,

    I can really use an example on this issue.

    Thanks in advance.
  3. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 04 Feb 2009 Link to this post

    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.
  4. Jacob
    Jacob avatar
    10 posts
    Member since:
    Sep 2008

    Posted 05 Feb 2009 Link to this post

    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.
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 Feb 2009 Link to this post

    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.
  6. Kris
    Kris avatar
    47 posts
    Member since:
    Feb 2008

    Posted 17 Aug 2010 Link to this post

    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
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 19 Aug 2010 Link to this post

    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
  8. chinnasamy
    chinnasamy avatar
    1 posts
    Member since:
    Nov 2012

    Posted 07 May 2013 Link to this post

    Hai Kris,
    I want This Code please help me be urgent.
       Thank you
    Regards
    K.Chinnasamy.
  9. Hadib Ahmabi
    Hadib Ahmabi avatar
    181 posts
    Member since:
    Nov 2011

    Posted 10 May 2013 Link to this post

    What code?
  10. gajjala
    gajjala avatar
    1 posts
    Member since:
    Feb 2019

    Posted 08 Feb in reply to Steve Link to this post

    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.

     

Back to Top