creating dynamic reports using separate subreports

4 posts, 0 answers
  1. Tops Software
    Tops Software avatar
    8 posts
    Member since:
    Aug 2012

    Posted 26 Dec 2012 Link to this post

    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.
  2. Stef
    Admin
    Stef avatar
    3041 posts

    Posted 28 Dec 2012 Link to this post

    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!

  3. DevCraft banner
  4. Tops Software
    Tops Software avatar
    8 posts
    Member since:
    Aug 2012

    Posted 28 Dec 2012 Link to this post

    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.
  5. Elian
    Admin
    Elian avatar
    435 posts

    Posted 02 Jan 2013 Link to this post

    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!

Back to Top