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

creating dynamic reports using separate subreports

3 Answers 222 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tops Software
Top achievements
Rank 2
Tops Software asked on 26 Dec 2012, 09:00 PM
Hello, 
I am trying to create a template that will serve as the base for all the reports in our application. So far I have created a reports for each section. ex layout is as follows.

page header 
report header
body - this will vary depending on the report.
report footer
page footer

each of these is its own report that I wish to call from a master template that has blank sections and just calls the other reports to generate the headers/footers. 

the problem I have is that I can simply set the pageHeaderSection1 to an instance of the headerTemplate.cs report as they are of different types.

How could I accomplish this?

Thank you for your time.

EDIT: I have it working by calling the reports from within a sub-report on the main template. I am having some display issues still though. not all the sub-reports show when displayed on the main template. they work just fine on their own in the designer preview however.

EDIT 2: Got that working too. looks like the sub-reports don't like it if you have a header section defined in the ReportSource it points to. I just moved all content to the detail section and set all other sections to visibility=false. I now have an issue where it is pushing my report header to the end of the report but only on the print preview or if I actually print. The preview is fine. see attachments for detail.

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 28 Dec 2012, 01:56 PM
Hello Chris,

Please, check the following KB article: Problem: Telerik Reporting renders blank pages where possible causes are listed and solved. Coloring differently the items in the Report Header might help you to figure out which is too wide.
I can suggest you to create an unbound group instead of using Report Header and move the report header data there. Then from the Telerik menu in VS, choose Group Explorer and set the GroupKeepTogether property of the group you created to First Detail or All.

Let us know if you have any further questions.

 Greetings,
Stef
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Tops Software
Top achievements
Rank 2
answered on 28 Dec 2012, 03:38 PM
Thanks for your reply. That is not the issue I am having anymore, see my edits to my OP. I am now going a different route with the template but would like to use my original design if we can work out this issue.

what I was running into before is that the header I defined in a sub-report was being pushed to a second page when it shouldn't be. Please see the attached images on my OP.
0
Elian
Telerik team
answered on 02 Jan 2013, 02:46 PM
Hello Chris,

We were not able to reproduce the problem with the provided description. It would be best if you open a support thread and attach a sample project, exposing the issue, so we can review it locally. 
 
Kind regards,
Elian
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Tops Software
Top achievements
Rank 2
Answers by
Stef
Telerik team
Tops Software
Top achievements
Rank 2
Elian
Telerik team
Share this question
or