-
Notifications
You must be signed in to change notification settings - Fork 28
Creating Reusable Headers and Footers #1952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: wrd-user-guide-version-2
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,63 @@ | ||||||
| --- | ||||||
| title: Creating Reusable Headers and Footers | ||||||
| page_title: Creating Reusable Headers and Footers | ||||||
| description: Learn how to use SubReports in the Web Report Designer to create reusable header and footers. | ||||||
| slug: creating-reusable-headers-and-footers | ||||||
| tags: web, report, design, components, subreport, header, footer, reuse | ||||||
| published: True | ||||||
| reportingArea: WRDHTML5, WRDBlazorWrapper | ||||||
| position: 4 | ||||||
| --- | ||||||
|
|
||||||
| # Creating Reusable Headers and Footers with SubReport | ||||||
|
|
||||||
| The SubReport item is a perfect fit if you need to build reusable parts of a Report that can be integrated into other bigger reports later. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| Here's a step-by-step tutorial for creating a reusable part of a report (for example, header and footer) using a SubReport: | ||||||
|
|
||||||
| <iframe width="560" height="315" src="https://www.youtube.com/embed/sMgP2iNkvvM?si=A7g7W7pBGyzlEt9y" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> | ||||||
|
|
||||||
| ## Creating the Header Report | ||||||
|
|
||||||
| 1. Create a new report (for example, HeaderReport.trdp). | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the
Suggested change
|
||||||
|
|
||||||
| 1. Remove the default header and footer. | ||||||
|
|
||||||
| 1. Add elements like company logo, report title, etc. in the Page Header section: | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't use "etc." and similar abbreviations of Latin origin.
Suggested change
|
||||||
|
|
||||||
| 1. Preview and save this report as a standalone file. This will serve as your reusable header part of a bigger report. | ||||||
|
|
||||||
| ## Creating the Footer Report | ||||||
|
|
||||||
| 1. Create a new report (for example, FooterReport.trdp). | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| 1. Remove the default header and footer. | ||||||
|
|
||||||
| 1. Add elements like information text or any other meaningful content to the footer part of a report. | ||||||
|
|
||||||
| 1. Preview and save this report as a standalone file. This will serve as your reusable footer part of a bigger report. | ||||||
|
|
||||||
| ## Adding SubReports to Your Main Report | ||||||
|
|
||||||
| 1. Create a new report that will be the main report. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| 1. Select the Details section and add a SubReport item. | ||||||
|
|
||||||
| 1. Navigate to the `INNER REPORT` section and select the **UriReportSource** option. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Everything you see in the UI must use bold. The only exception are values in an input field, which use the inline code style.
Suggested change
|
||||||
|
|
||||||
| 1. For the **Uri** field select the HeaderReport.trdp. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| 1. Preview the report to see that the header content is successfully included. | ||||||
|
|
||||||
| 1. Select the Details section again and add another SubReport item. | ||||||
|
|
||||||
| 1. Navigate to the `INNER REPORT` section and select the **UriReportSource** option. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| 1. For the **Uri** field select the FooterReport.trdp. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
| ## See Also | ||||||
|
|
||||||
| * [Web Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/web-report-designer/overview%}) | ||||||
| * [Data Sources]({%slug web-report-designer-user-guide-components-data-sources%}) | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.