List Page Breaks

11 posts, 0 answers
  1. Jan
    Jan avatar
    11 posts
    Member since:
    Oct 2014

    Posted 16 Aug Link to this post

    Hello. I have a detail section which at one point consists of a list item (binded to an array of strings) that has just one textbox. The text in the textbox is usually very long and has to be printed on more pages. Every new string begins on a new page, what is fine to me, however, I need the very first string not to start on the new page (I need it to be right after the previous items in the detail section). Is there a way to do this? I cant use subreports (I used it and it worked fine, but there are other reasons why they cannot be used). Thank you :)
  2. Stef
    Admin
    Stef avatar
    3043 posts

    Posted 16 Aug Link to this post

    Hi Jan,

    Please test the latest Telerik Reporting version, where rows higher than one physical page are split, instead of having the whole row pushed on the next page - Installing Telerik Reporting. The List item and nested items KeepTogether must be set to false.

    In case upgrading is not an option, the workaround is to switch back to SubReport items, where sub reports visualize data via TextBox items in their Detail section. Sub reports can be bound to the main report's data, if needed - How to bind Sub Report to Main Report's Data.

    Regards,
    Stef
    Telerik by Progress
    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
  3. DevCraft banner
  4. Jan
    Jan avatar
    11 posts
    Member since:
    Oct 2014

    Posted 22 Aug Link to this post

    Hello. So I decided to use subreports again. However, each string (subreport) should have a different header, which is just a part of the string. Header in subreport is not allowed. What is the way to achieve this?
  5. Pierre
    Pierre avatar
    56 posts
    Member since:
    Jun 2016

    Posted 24 Aug Link to this post

    Hi Jan,

    There is multiple way to achiev ' fake header '  in a SubReport.
    The easier way for me is :
         Use Label as Header/Footer
         Use Table to display the element
         Use your Datasource only on the table not on the Detail Section
     
    This is a 100% WYSIWYG solution.
    I give you some quick mockup of what i did using this solution.
       1rst picture is the a general solution.
       2nd picture is a mock up of one of my report.


    Regards,
    Pierre.
  6. Jan
    Jan avatar
    11 posts
    Member since:
    Oct 2014

    Posted 24 Aug Link to this post

    Thank you for your response :) However, I still have some questions. What do you mean by "Label" since there is no such item in the toolbox (I am using VS2010)? And second question, by header I mean that I need it to be on every new page, so, will it behave in this way? 
  7. Stef
    Admin
    Stef avatar
    3043 posts

    Posted 24 Aug Link to this post

    Hi,

    Indeed you can use the GroupHeader/Footer or ReportHeader/Footer sections. Page Sections will be ignored, including PageSettings, when a report is added via SubReport item.

    Regards,
    Stef
    Telerik by Progress
    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
  8. Jan
    Jan avatar
    11 posts
    Member since:
    Oct 2014

    Posted 25 Aug in reply to Stef Link to this post

    Thanks for response.

    When using Gruop/Report Header, the header is on every new subreport, however, I need it to be on EVERY SINGLE PAGE of the whole report (as mentioned, report is consisted of string subreports, which are really long).

     

  9. Pierre
    Pierre avatar
    56 posts
    Member since:
    Jun 2016

    Posted 26 Aug Link to this post

    Hi Jan,

    Can the PrintOnEveryPage Propeties on GroupHeader do the trick ?

     

    regards,
    Pierre.

  10. Jan
    Jan avatar
    11 posts
    Member since:
    Oct 2014

    Posted 26 Aug in reply to Pierre Link to this post

    Thank you very much :)

    I am almost there, but now, on the first page of the subreport, the header prints twice, I dont understand why. Other pages of the subreport look fine now.

  11. Pierre
    Pierre avatar
    56 posts
    Member since:
    Jun 2016

    Posted 26 Aug in reply to Jan Link to this post

    Hi,

    I just can't reproduce the behave on my side, on a clean report.
    Now you have 2 solution:
    1/. Submit a ticket with your code and pray the old god.

    2/. Publish runnable standalone sample here.
    In your quest you must have alter a properties a little one and you have forget about it .
    And this is the source of your issue.

    Create a new sub report a clean one.
    Try to reproduce the issue.
    If you can reproduce it publish it here.

  12. Jan
    Jan avatar
    11 posts
    Member since:
    Oct 2014

    Posted 26 Aug in reply to Pierre Link to this post

    Thank you all, the report is finally done. When I added new gruop, I forgot to set PageBreak of the detail section to none and set the footers to After. It is working now. 
Back to Top
DevCraft banner