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.
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.