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

Recommended method to add the header from a table to each page

15 Answers 544 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 09 Sep 2011, 11:33 AM
Hi There,

I was hoping someone could point me in the right way to display the header of a table on each new page. I've tried adding in groups, but this seems to assume that you have seperate objects (some text boxes for the header and some for the details), which in the case of a table is not what is available.

I've tried setting the 'ColumnHeadersPrintOnEveryPage' property to true, but this doesn't seem to have any affect, am I missing something here?

Cheers,

Doug

15 Answers, 1 is accepted

Sort by
0
Doug
Top achievements
Rank 1
answered on 13 Sep 2011, 10:59 AM
Does anyone have any ideas for this behaviour? I've read over all the sectioning documentation and cannot find any metion of the best way to handle tables.

Many thanks,

Doug

0
Peter
Telerik team
answered on 13 Sep 2011, 01:49 PM
Hello Doug,

Generally Table item template and wizard, generates table with a real header. However if you have removed the table header, ColumnHeadersPrintOnEveryPage will not have any effect. Check out the attached video that illustrates how to create a real table header and let us know how it goes. If you experience any further difficulties we will appreciate if you elaborate further on your report layout.

Best wishes,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Doug
Top achievements
Rank 1
answered on 13 Sep 2011, 02:31 PM
Hi Peter,

Thanks for the reply, as a start point for this report I simply used a table via the wizard, so as you say I kind of hoped it had a real header. All I'd done with this header was alter the text for a few fields and reformatting the style properties, nothing too heavy.

I will take a look at the video to see if I've slipped up along the way and let you know how things pan out,

Many thanks,

Doug
0
Andrey
Top achievements
Rank 2
answered on 13 Sep 2011, 03:43 PM
Hello Peter,

  I have the same problem with table headers.
  Unfortunately the video did no help me.

  Can you please upload the whole project of report.design.cs file?

Kind regards,
-Andrey Popov
0
Andrey
Top achievements
Rank 2
answered on 14 Sep 2011, 08:17 AM
Hello Peter,

  I was careless))
  I forgot to set "ColumnHeadersPrintOnEveryPage = true;".
  Now it works!
  Thank you very much.

Thanks,
-Andrey Popov
0
Doug
Top achievements
Rank 1
answered on 14 Sep 2011, 03:06 PM
Hi Peter,

Thanks again for the video link, I have followed the steps described but this does not seem to behave as expected.

Here is the outline of my report structure if it's of any user:

Header
>header image
>report title

Details
> Some text boxes at the top which I don't want to appear on each page
> The table, I would like the header of this table to appear on each subsiquent page, if the table content forces it over a page.

At the moment my table header doesn't seem to repeat

I'm afraid I'm having to run this project with the reporting dll version 5.0.11.316 if that's relevant.

Any feedback would be a huge help,

EDIT: Just to avoid dealing with this issue twice I have raised a support ticket as I would like to upload some files to help illustrate the problem. The Support ticket is #  463967 

Cheers,

Doug

0
Richard
Top achievements
Rank 1
answered on 03 May 2013, 08:25 PM
The attached file does not contain a video can you please attach one
0
Peter
Telerik team
answered on 06 May 2013, 07:22 AM
Hello Richard,

If you are referring to my post, the attached archive contains a video file with swf extension and to open it you need a browser with Adobe Flash plugin.

Kind regards,
Peter
the Telerik team

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

0
Richard
Top achievements
Rank 1
answered on 06 May 2013, 02:43 PM
There is no sound to this vid so it's hard to understand, also my table dopes not have any page breaks in it when i add it to the details section of the report

Also the report header and footer are above/below the page header and footer, this seems backwards to me
0
Peter
Telerik team
answered on 06 May 2013, 03:41 PM
Hi Richard,

Up to your first question, do you utilize the viewer interactive view? If this is the case check out Interactive vs. Print Layout help article.

About the page and report header order of printing, this is elaborated in the Why does the page header appear before the report header? help article.

Kind regards,
Peter
the Telerik team

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

0
Richard
Top achievements
Rank 1
answered on 06 May 2013, 05:08 PM
Thanks for your prompt reply
I stumbled upon the Interactive v.s. the print layout solution myself and that solved the problem
I will read the article shortly
Thanks again fro your help
0
Richard
Top achievements
Rank 1
answered on 06 May 2013, 05:49 PM
Hate to be a pest and all but i just noticed something
When i switch to print preview mode i get an empty first page
When i use interactive mode that doesn't happen but of course i dont get the pageing
0
Peter
Telerik team
answered on 08 May 2013, 02:29 PM
Hello Richard,

Where relevant our suggestion is to set the report items KeepTogether property to False. 

However if you have nested tables/lists/crosstabs we would suggest to change the layout of the application so it doesn't use nested tables. Instead, use nested groups (you can keep the most inner table) and transform the outer table into group. 

Kind regards,
Peter
the Telerik team

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

0
Richard
Top achievements
Rank 1
answered on 08 May 2013, 02:55 PM
The problem is that i'm using and EF.
what i have is a list of Role Objects List<CoreRole>
And each Role has a property named Permissions being a List<CoreRight>

I am trying to get a report that lists each role and all of the permissions for each one

I don't believe grouping will work here but i am probally wrong, any suggestions

BTW i am now using the 2011 Q2 version *i have no choice (long story)

Currently I am using sub reports with parameters
0
IvanY
Telerik team
answered on 13 May 2013, 11:00 AM
Hi Richard,

You will have to set the KeepTogether property to false (as stated in the previous post) to false of the subreport in the main report and also of the detail section of your subreport. This will prevent from keeping your content together on a single page and it will be split across two pages, the first one being the first page of your report.

Please note that if you are using tables in the subreports you will have to remove them since the cells of a table are always kept together, even if the property KeepTogether is set to false.

Kind regards,
IvanY
the Telerik team

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

Tags
General Discussions
Asked by
Doug
Top achievements
Rank 1
Answers by
Doug
Top achievements
Rank 1
Peter
Telerik team
Andrey
Top achievements
Rank 2
Richard
Top achievements
Rank 1
IvanY
Telerik team
Share this question
or