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

Display tables in one page, print in several

4 Answers 335 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
ANDREY
Top achievements
Rank 1
ANDREY asked on 25 Sep 2018, 06:39 AM

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.

4 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 27 Sep 2018, 03:42 PM
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
0
ANDREY
Top achievements
Rank 1
answered on 28 Sep 2018, 08:26 AM

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.

0
ANDREY
Top achievements
Rank 1
answered on 28 Sep 2018, 08:27 AM

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.

0
Silviya
Telerik team
answered on 03 Oct 2018, 07:07 AM
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
Tags
Report Designer (standalone)
Asked by
ANDREY
Top achievements
Rank 1
Answers by
Silviya
Telerik team
ANDREY
Top achievements
Rank 1
Share this question
or