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

Page header not printing when used as a subreport

5 Answers 1061 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vince Smith
Top achievements
Rank 1
Vince Smith asked on 29 Apr 2009, 01:39 PM
I have a requirement where I need to combine two reports into one in order to print both at the same time.  I know Telerik has the new ReportBook feature, but we are not using the version of reports that has this feature.

I tried just creating a new blank report with just the detail section and adding two subreports to it.  I then add just add the two reports as the reportsource for the subreports that are in the new report.

The combined report renders except that the page header section from the each of the two reports that was set as the report source for the combined report does not print.  I need to be able to print everything that is on both reports combined in one report.  Is there some option that will allow the page headers for each report to print when that report is used as a subreport?

Thanks

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 29 Apr 2009, 02:09 PM
Hi Vince,

As explained in the SubReport help article, only the master report can have page sections and the ones set on subreports are ignored by design. This is due to the fact that Page headers/footers are not related to the report itself, but are relative to the margins of the report's media, i.e. to the paper or screen and there can be only one page header/footer per page. As a possible workaround, you can consider using an unbound group (a group without any grouping criteria specified) and set its GroupHeader/FooterSection.PrintOnEveryPage = True.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Vince Smith
Top achievements
Rank 1
answered on 29 Apr 2009, 02:24 PM
Thanks for the reply Steve.

I'm not eactly sure how you want me to implement the proposed work around.  Am I creating a group in the new combined report?  Are the sub reports being added to the group header or footer section?  It's not clear what the layout should look like.

On another note, would using the ReportBook elimiate the issue?

Thanks
0
Accepted
Steve
Telerik team
answered on 29 Apr 2009, 02:44 PM
Hi Vince,

We believe we have already elaborated on the proposed solution in one of your previous tickets "Subreport page header work around" i.e. you should apply it to the reports acting as subreports, so that the unbound group sections act as theirs page header/footer.
Using the report book feature would indeed eliminate the need for this - you can see the live demo here and more info is available in the documentation.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Vince Smith
Top achievements
Rank 1
answered on 29 Apr 2009, 02:47 PM
Thanks again Steve.  The issue from the ticket that you mentioned is not the same as I am experiencing now.  I will take a look at the ReportBook feature.

Thanks
0
Chris
Top achievements
Rank 2
answered on 08 Oct 2012, 09:07 AM
Hi,
I know this is a very old thread and there is a work around for this issue. I just wanted to give a different perspective on why it would be useful to have a way for sub reports to print their headers and footers without having to introduce an unlinked group (which works well for BTW).

My scenario is a bit different to most that I have seen here and I'm not sure if a Report Book would cover it (I want to print one report multiple times not combine multiple reports). What I have is a report that prints out a pupil's interim school report. I am using the report viewer to show this report on our intranet and to parents via the parent portal. In most cases this is fine, but there are situations when a particular member of staff may wish to print off all of the pupils in a year group (120 or so) for example, now this would be very time consuming if they had to do it one by one.

To keep maintainability and also to make this easier the obvious solution was to create another report that had a list of all pupils to be printed and then use the first report as a sub report. This then means that the report is printed once for each pupil and all headers and footers need to from the sub report as all of the school crest and pupil name is on the header.

I have now modified the main report to use the unlinked group workaround but it seems a bit clunky and not very elegant to have to ignore page headers and footers.

Thanks

Chris
Tags
General Discussions
Asked by
Vince Smith
Top achievements
Rank 1
Answers by
Steve
Telerik team
Vince Smith
Top achievements
Rank 1
Chris
Top achievements
Rank 2
Share this question
or