Display tables in one page, print in several

5 posts, 0 answers
  1. ANDREY
    ANDREY avatar
    10 posts
    Member since:
    Nov 2016

    Posted 25 Sep 2018 Link to this post

    Hello,

    In reports, that I need, there are some tables that should be displayed (in interactive mode) in one page but printed in several pages. To prevent page split in the interactive mode I try to make one big table with subtables (I merge cells and then insert panel+table) and then injust KeepTogether property to control the page break places. However, sometimes it is not work as I suppose, and also it doesn't allow me to print small tables (that fit in one page) on different pages.  

    Are there better solutions for my need? Is there any way I can clearly define the strict page break place?  

    Thanks!

    Reports are made in standalone designer, and then shown in html5 report viewer.

  2. Silviya
    Admin
    Silviya avatar
    318 posts

    Posted 27 Sep 2018 Link to this post

    Hi Andrey,

    You can achieve the desired behavior by creating each Table in separate static groupHeaderSection and set a binding rule which will put PageBreak only in PrintPreview mode (using RenderingFormat object). For example:
    Property Path: PageBreak
    Expression: = IIf(RenderingFormat.Name = 'IMAGEInteractive', 'None', 'After')

    This would work for reports in the designers, but in case you are using the HTML5 Report Viewer Interactive mode only the Rendering Format should be changed to HTML5Interactive. For more information, check Rendering Extensions.
    I'm attaching a sample report definition for reference.

    Regards,
    Silviya
    Progress 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
  3. ANDREY
    ANDREY avatar
    10 posts
    Member since:
    Nov 2016

    Posted 28 Sep 2018 Link to this post

    Thanks for the answer! 

    However, If the tables are quite big this approach will put them on different pages in the interactive mode even if all PageBreak properties are set to None.

  4. ANDREY
    ANDREY avatar
    10 posts
    Member since:
    Nov 2016

    Posted 28 Sep 2018 in reply to Silviya Link to this post

    I'll duplicate it just in case.

    Silviya, thanks for the answer!

    However, If the tables are quite big this approach will put them on different pages in the interactive mode even if all PageBreak properties are set to None.

  5. Silviya
    Admin
    Silviya avatar
    318 posts

    Posted 03 Oct 2018 Link to this post

    Hello Andrey,

    This is expected behavior due to the paging mechanism of the Interactive View called soft page breaks, where the report is optimized for screen-based viewing and delivery.
    However, a possible workaround is to create a User function which will set report's PageSettings.PaperSize.Height to a larger value.

    Regards,
    Silviya
    Progress 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