Is it possible to enter page break in the report List?

23 posts, 0 answers
  1. Mindaugas
    Mindaugas avatar
    4 posts
    Member since:
    Mar 2012

    Posted 15 Jun 2012 Link to this post

    Hello, i would like to enter a page break when list RowCount() = 4. Is it posible to do somehow using designer or code ? Thanks indeed for any help. I know i can add custom formatting rules but there is no page break option to select. Basically i need to put a page break in a list after a certain number of list rows.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 15 Jun 2012 Link to this post

    Hi Mindaugas,

    PageBreaks are only available per report sections and you cannot force a pagebreak on a list. Since you're using List item which works pretty much like a repeater, we suggest you recreate your layout with report sections/groups instead.

    Regards,
    Steve
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  3. DevCraft banner
  4. Mindaugas
    Mindaugas avatar
    4 posts
    Member since:
    Mar 2012

    Posted 15 Jun 2012 Link to this post

    Thank you for your message. Really appreciate your help. Whats the point to use a section group? if i put a list in section group so how i would be able to insert a page break depending on list item count in that group? how to insert a section group in report by the way? I cant find any specific item in toolbox at the moment. :(
  5. Elian
    Admin
    Elian avatar
    435 posts

    Posted 18 Jun 2012 Link to this post

    Hi Mindaugas,

    Just as the List item, the report can show items from different data-sources. If you assign the DataSource property of the report and put textboxes in the Detail section, the Detail section will repeat once for each item in the DataSource (just like the List). So the Detail section can generally be treated like a list. If you recreate your layout with the usage of report section (and not the list), you will be able to set a page break on every 4th item. 

    Greetings,
    Elian
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  6. Wadigzon
    Wadigzon avatar
    58 posts
    Member since:
    Feb 2013

    Posted 14 May 2013 Link to this post

    I have two lists in my report, they are horizontally laid out one after the other, the end of the 1st list and the beginning of the 2nd list sometimes appear at the middle of the page, how do I make the beginning of the 2nd list start on a new page? (force a break point before a new list (the 2nd) begins)

    regards
  7. IvanY
    Admin
    IvanY avatar
    417 posts

    Posted 17 May 2013 Link to this post

    Hello Wadigzon,

    You can add the lists to a group so that the two lists are in different groups. Then set the group header and footer to visible=false. Finally set the PageBreak property of the group to be different from None (according to your needs).

    For more about grouping please check this Grouping Data help article.

    Regards,
    IvanY
    the Telerik team

    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

  8. Wadigzon
    Wadigzon avatar
    58 posts
    Member since:
    Feb 2013

    Posted 17 May 2013 Link to this post

    IvanY wrote: 
    "You can add the lists to a group so that the two lists are in different groups.
    you are confusing me, I thought you add groupings to a list in group explorer, where do I add the entire list to a group? 

    "Then set the group header and footer to visible=false."
    didn't know groups have header and footer are you sure you're talking about groups?

    "Finally set the PageBreak property of the group to be different from None"
    didn't know groups have PageBreak either ...... please clarify this for me ... 

  9. IvanY
    Admin
    IvanY avatar
    417 posts

    Posted 23 May 2013 Link to this post

    Hello Wadigzon,

    Up to your questions:
    1. You can add groupings to the report itself. For example if you use the report wizard for creating a report you will see that besides the report and page header/footer sections also group sections will be added. Additionally you will be able to see the group in the Group Explorer upon clicking on the detail section for example.
    2. See 1. Each report group has a respective group header and footer.
    3. To be more specific PageBreak property has the detail section - it will give you the option to start each record on a new page.

    Basically in your case the data has to be organized in a way that it can support your scenario. You will have to create a data source in a way that the two lists are in two separate groups. Then set the data source of the report to this data source and finally set the data source of the list (it has to be a single list and in runtime you will have two lists, one for each group). Then set the PageBreak property of the detail section to be different from none and finally hide the group header and footer (since you are going to use the groups only for the PageBreak).

    If your data is not or cannot be organized in such way you will not be able to always start the list on a new page.

    For more information about report grouping please have a look at this help article: How to: Add groups to Report.

    All the best,
    IvanY
    the Telerik team

    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

  10. Wadigzon
    Wadigzon avatar
    58 posts
    Member since:
    Feb 2013

    Posted 06 Jun 2013 Link to this post

    When I create two groups inside the report, they both have a header and a footer and they are nested (one inside the other), I don't understand this: My report is in the detail section, how do I move a report to the group? should I put it in the header/footer of the group as I don't see the group itself in the design layout. and if I hide the group header and footer, what sense does it make to put it there as I have to hide them.
  11. Wadigzon
    Wadigzon avatar
    58 posts
    Member since:
    Feb 2013

    Posted 06 Jun 2013 Link to this post

    could you post some sample code where you've done this ? two lists always separated by a page break.

    regards.
  12. IvanY
    Admin
    IvanY avatar
    417 posts

    Posted 11 Jun 2013 Link to this post

    Hi Wadigzon,

    I have attached a sample report demonstrating how to complete your goals. Please note that as stated in the previous posts you will need to group your data on something in order to be able to insert the desired page break.

    Regards,
    IvanY
    Telerik

    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

  13. Wadigzon
    Wadigzon avatar
    58 posts
    Member since:
    Feb 2013

    Posted 13 Jun 2013 Link to this post

    I added these files to my project without much success (clicking the project file doesn't show me anything on design mode neither does clicking on preview).... do you have a project file around these files that I can just run?

    regards.
  14. IvanY
    Admin
    IvanY avatar
    417 posts

    Posted 18 Jun 2013 Link to this post

    Hi Wadigzon,

    Sorry for the inconvenience. Most probably you are not able to open the report since I used the latest version when I was creating it. Please check this one. Additionally please note that if you are not able to open this one it will be best to write a support ticket and specify the version you are using (the support ticket will be handled faster than a forum post).

    Regards,
    IvanY
    Telerik

    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

  15. Wadigzon
    Wadigzon avatar
    58 posts
    Member since:
    Feb 2013

    Posted 18 Jun 2013 Link to this post

    got it now thanks ... 
  16. Wadigzon
    Wadigzon avatar
    58 posts
    Member since:
    Feb 2013

    Posted 18 Jun 2013 Link to this post

    The question was about two lists laid out vertically, one after the other: How do I insert a page break before the beginning of the second list? this response doesn't seem to address that question. Should I create a new thread for this? 
  17. IvanY
    Admin
    IvanY avatar
    417 posts

    Posted 21 Jun 2013 Link to this post

    Hi Wadigzon,

    The report we have sent you has exactly two lists which are on separate pages. If a list is longer than a single page it will continue on a new page. However when the new lists starts (the second one) it will always start on a new page, i.e. you will have a page break.

    Please have in mind that inserting page breaks randomly in the report is not possible (as stated in the previous posts). Inserting page breaks can be done if you have properly grouped your data. Then you will be able to set a page break before, after or before and after a new group. The example sent to you does just that - it wraps the two lists in a group so that they can take advantage from the group paging.

    If your lists contain completely different data you may need to use a user function that returns your data source based on the group in which your list is.

    Regards,
    IvanY
    Telerik

    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

  18. Wadigzon
    Wadigzon avatar
    58 posts
    Member since:
    Feb 2013

    Posted 21 Jun 2013 Link to this post

    Clearly, there's only one List (Table) object as shown in the attached image, the name of the object is table2, 
    where is the other List (Table)? My question speaks of two different lists laid out vertically.

    regards,
  19. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 26 Jun 2013 Link to this post

    Hello,

    Check out the updated sample according to your description. If you still experience any further difficulties in order to avoid further confusion please open a support thread and send us the problematic report definition to review on our end.

    Regards,
    Peter
    Telerik

    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

  20. MV
    MV avatar
    21 posts
    Member since:
    Dec 2015

    Posted 23 Feb Link to this post

    I have a report with 3 lists

    list 1 : First 3 lines

    list 2: Left column (owners record)

    list 3: Right column (send correspondence)

    When I preview my report, it looks perfect; but when I export to pdf, it is performing a page break. It doesn't do it when there are more or less than 5 records.

    Any help will be appreciated, thank you!

  21. MV
    MV avatar
    21 posts
    Member since:
    Dec 2015

    Posted 23 Feb in reply to MV Link to this post

    Here's what I did in case someone has the same issue.

    Set List Properties Behavior: KeepTogether to False

  22. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 25 Feb Link to this post

    Hello MV,

    I am glad to hear the issue is resolved.

    Just to add some information:
    The report is displayed in interactive preview on your screenshots from the report designer. The physical layout of the document can be seen in print preview - Interactive vs. Print Layout.


    And for anyone interested:
    If there are blanks spaces in print preview, I can suggest you the troubleshooting approaches in the Problem: Telerik Reporting renders blank pages KB article. By coloring items and sections you can determine which causes the blank space and change its KeepTogether property based on the Understanding Pagination help article.

    Regards,
    Stef
    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
  23. MV
    MV avatar
    21 posts
    Member since:
    Dec 2015

    Posted 26 Feb in reply to Stef Link to this post

    One more question...

    List 2 and List 3 have 8 textboxes w/fields and conditional formatting on every textbox. If there is no First Name and Last Name, I hide the textbox so only 7 textboxes will be displayed. Is there a way to shrink the list depending on the textboxes that are actually displayed?

  24. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 01 Mar Link to this post

    Hello MV,

    When a TextBox item is hidden the rest will move in the container based on the Design Considerations for Report Item Layout.

    Thus my suggestion is to design the List items to have minimal sizes per Textbox items and rows in the List item's structure. The visualized content will cause items to grow vertically. Please do not use zero values for width and height of items to avoid processing and rendering issues.


    I hope this information helps.

    Regards,
    Stef
    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
Back to Top
DevCraft banner