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

Table Spacing on Page Break

1 Answer 348 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 21 Jan 2016, 10:19 PM
Hi, currently have a problem with table spacing and page breaks. I have a subreport which contains 1 table in it. I'm trying to give the table about half an inch of spacing from top on each page it breaks. Setting the padding-top property to half an inch works, but then the bottom row on each page is cut off. Is there some way to get this to work?

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 22 Jan 2016, 03:52 PM
Hello Michael,

Setting the Padding property will only set the space in the beginning of  the Table item. As we understood, you need a space on the top on each page the table will break.

This can be achieved with following:
  • Add a header row in the Table item in your sub report. To add a header row you can run the Table Wizard which generates such automatically; or if there is no such in the existing Table item follow the steps described in this forum post.
  • To repeat this row for every page of the table set Table -> ColumnHeadersPrintOnEveryPage=True
  • Additionally you can:
    • Remove border lines for the first row set Table -> Style -> BordeColor and Row -> Style -> BorderColor to Transparent;
    • Set Row -> RowHeight property to 0.5in;

You can preview the result in Print Preview Mode - please see Interactive vs. Print Layout help article.

Please let us know if you have any additional questions.

Regards,
Katia
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
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or