-
Notifications
You must be signed in to change notification settings - Fork 29
Dess wrd templates #1870
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: master
Are you sure you want to change the base?
Dess wrd templates #1870
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,47 @@ | ||
| --- | ||
| title: How to Edit a Report Template | ||
| page_title: How to Edit a Report Template in Web Report Designer | ||
| description: Learn more about Report Templates in the Telerik Reporting Web Report Designer, how to create and reuse them. | ||
| slug: web-report-designer-how-to-edit-a-report-template | ||
| tags: web, report, designer, wrd, report, template, trtx, edit | ||
| published: True | ||
| position: 2 | ||
| --- | ||
|
|
||
| <style> | ||
| img[alt$="><"] { | ||
| border: 1px solid lightgrey; | ||
| } | ||
| </style> | ||
|
|
||
| # How to Edit a Report Template in Web Report Designer | ||
|
|
||
| |Minimum Version:|Q4 2025| | ||
| |----|----| | ||
|
|
||
| To edit an existing Report Template (.trtx file), follow the steps: | ||
|
|
||
| 1. Select the `New Report` option from the Menu: | ||
|
|
||
|  | ||
|
|
||
| 1. Create a Report **From Template**: | ||
|
|
||
|  | ||
|
|
||
| 1. Select the Report Template (.trtx file) you want to edit: | ||
|
|
||
|  | ||
|
|
||
| 1. Make the desired changes to the loaded predefined report | ||
|
|
||
| 1. Save as a **Template** overwriting the previously selected .trtx file: | ||
|
|
||
|  | ||
|
|
||
|
|
||
| ## See Also | ||
|
|
||
| * [Setting up the Web Report Designer in .NET applications]({%slug telerikreporting/designing-reports/report-designer-tools/web-report-designer/how-to-set-up-in-.net-5-and-.net-core-3.1-applications%}) | ||
| * [Web Report Designer Customization]({%slug telerikreporting/report-designer-tools/web-report-designer/web-report-designer-customization%}) | ||
| * [Report Templates in Standalone Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/report-templates%}) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,148 @@ | ||
| --- | ||
| title: Report Templates | ||
| page_title: Report Templates in Web Report Designer | ||
| description: Learn more about Report Templates in the Telerik Reporting Web Report Designer, how to create and reuse them. | ||
| slug: web-report-designer-report-templates | ||
| tags: web, report, designer, wrd, report, template, trtx | ||
| published: True | ||
| position: 1 | ||
| --- | ||
|
|
||
| <style> | ||
| img[alt$="><"] { | ||
| border: 1px solid lightgrey; | ||
| } | ||
| </style> | ||
|
|
||
|
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. How many personas is this article targeting? I'm left with the impression that it targets both app developers and report designers. If it targets more than one persona, make sure to split the content for the different personas into independent articles as mixing personas in a single article is confusing and considered poor practice. Splitting the article would allow you more flexibility and let you build two focused articles that are much easier to follow. |
||
| # Report Templates in Web Report Designer | ||
|
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. The title is too generic -> Try including words that provide hints to what the user/developer would be able to achieve after reading this article. For example, Creating and Using Report Templates, Creating, Customizing, and Managing Report Templates, |
||
|
|
||
| |Minimum Version:|Q4 2025| | ||
| |----|----| | ||
|
|
||
| The main purpose of using report templates in the Telerik Web Report Designer is to help users quickly create consistent, professional-looking reports without starting from scratch every time. | ||
|
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. The first question I would ask: What are templates? And I'd like to see the answer in the intro of the article. |
||
|
|
||
| ## Why Use Report Templates? | ||
|
|
||
| * **Save Time**: Templates provide a ready-made layout and structure, so you can focus on your data and content rather than design. | ||
|
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. Consider: Templates offer a ready-made layout and structure, so you can focus on your data instead of design. |
||
|
|
||
|
Comment on lines
+26
to
+27
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. When it comes to time saving, the most common term would be "Increased Productivity". |
||
| * **Ensure Consistency**: Using templates helps maintain a uniform look and feel across multiple reports - especially useful for teams or organizations. | ||
|
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. I feel like "using templates" is redundant here, the title is "Why Use" already. I suggest: "Maintain a uniform look and feel across reports—especially helpful for teams and organizations." |
||
|
|
||
| * **Simplify Design for Non-Designers**: Even if you're not familiar with styling or layout best practices, templates give you a polished starting point. | ||
|
|
||
| * **Customize and Reuse**: You can modify a template to suit your needs and reuse it across different projects or departments. | ||
|
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. I suggest: "Easily adapt templates to fit different projects or departments, and reuse them to stay efficient." |
||
|
|
||
| * **Standardize Branding**: Templates can include your company’s logo, colors, fonts, and layout preferences - ensuring every report aligns with your brand. | ||
|
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. Maybe change title to: "Support Branding" ? Additionally, I think that Templates here is also redundant, due to the title, maybe: "Include your company’s logo, colors, and fonts to ensure every report aligns with your brand identity." |
||
|
|
||
| ## How Templates Work in Web Report Designer | ||
|
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. I like to think about each article like a short story. I don't see a coherent story here. The article should start by setting the stage (your intro), providing the basic context (Why Use Report Templates?), and then develop the plot by giving a sequence of events. What I miss in this article is the tight logical sequence of events (actions the user/dev can perform):
|
||
|
|
||
| When creating a new report, instead of beginning from scratch with a **Blank Report**, you can start with a .trtx **Template** file. | ||
|
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. Consider changing the sentence to something like that: "Instead of starting from scratch with a blank report, you can save time by using a template (.trtx) file. It gives you a ready-made layout and structure to build on, making report creation faster and more consistent." 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. About the title, I think that "Getting Started with Templates in Web Report Designer" is more suitable, since its a step-by-step guide, not exactly an explanation of how they work. |
||
|
|
||
| |Create a Blank Report|Create From a Template| | ||
| |----|----| | ||
| | || | ||
|
|
||
| This gives you a predefined layout, styling, and structure, saving time and effort. Templates can include: | ||
| * Headers and footers | ||
| * Company branding (logos, colors, fonts) | ||
| * Predefined data regions (tables, charts, etc.) | ||
| * Style rules and formatting | ||
|
|
||
| This makes it easy to maintain a consistent look across multiple reports. | ||
|
|
||
| ### Starting from a Template | ||
|
|
||
| 1. Select the `New Report` option from the Menu: | ||
|
|
||
|  | ||
|
|
||
| 1. Select an existing `Template`: When creating a new report, you can choose a template from the available list. The designer loads the layout and styles, and you can then customize the content and data bindings. | ||
|
|
||
|  | ||
|
|
||
| 1. Enter `File Name` and `Format`: Once the template is selected, enter an appropriate name for the report you are creating from the template and choose the `Format`: | ||
|
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. Consider: "After selecting a template, give your new report a meaningful name and choose the desired output format." |
||
|
|
||
|  | ||
|
|
||
| ### Creating Your Own Templates | ||
|
|
||
| You can design a report in the Web Report Designer and save it as a template. This allows you or your team to reuse it for future reports. When you wish to save the currenty opened report, select the `Save As...` option from the Menu: | ||
|
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. There is a typo here, currenty instead of currently |
||
|
|
||
|
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. The instructions here feel mixed up:
|
||
|  | ||
|
|
||
| The end-user is presneted the option to save the report either as a `Report` (.trdp or .trdx file format), or as a `Template` (.trtx file format): | ||
|
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. there is a typo here presneted instead of presented. |
||
|
|
||
| |Save As Report|Save As Template| | ||
| |----|----| | ||
| | || | ||
|
|
||
| ### Report File Formats | ||
|
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. This section feels like the article is loosing the thread. Do you need to get into details about report formats when the main topic are templates? You may very well reference this information by linking an article, but do we need it here? 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. Yes, this section may sound a bit weird but we can't reference such an article because we do not have one. That is why I wanted to clarify what is the format for the templates among the rest of the report formats. But I will think about extracting this important information outside the topic. |
||
|
|
||
| The file extensions **.trdp**, **.trdx**, **.trtx** and **.trbp** are used in Telerik Reporting to represent different types of report files. Here's a breakdown of what each one is for: | ||
|
|
||
| |Format| Description| Use Case|Designer Compatibility| | ||
| |----|----|----|----| | ||
| |.trdp|**T**elerik **R**eport **D**efinition **P**ackage - Full report with resources. XML-based, editable|Ideal for packaging a report with its assets (images, styles, etc.).|Used in both Web Report Designer and Standalone Report Designer.| | ||
| |.trdx|**T**elerik **R**eport **D**efinition **X**ML - Report definition only. Packaged binary (ZIP)|Better for deployment and performance|Supported in Standalone Report Designer and Web Report Designer.| | ||
| |.trtx|**T**elerik **R**eport **T**emplate **X**ML - XML file used as a template|Used to create new reports based on a predefined layout or style|Supported in Standalone Report Designer and Web Report Designer.| | ||
| |.trbp|**T**elerik **R**eport **B**ook **P**ackage - Stores a report book - a collection of multiple reports|Used when you want to combine several reports into one document (e.g., for printing or exporting)|Standalone Report Designer (and programmatically)| | ||
|
|
||
| The report template format **.trtx** stands for Telerik Report Definition XML and contains the structure, layout, data bindings, and styling of a report. Unlike .trdp (which is a packaged format), .trdx is plain XML, making it easier to version control, edit manually, or generate dynamically. | ||
|
|
||
| ## Configure Report Templates Folder | ||
|
|
||
| If your application doesn't have a specific **Report Templates** folder setup, a default one will be created at root level of your project. You can also navigate to a specific custom folder that contains all the report templates you wish to use. | ||
|
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.
|
||
|
|
||
| The [ReportDesignerServiceConfiguration]({%slug telerikreporting/designing-reports/report-designer-tools/web-report-designer/how-to-set-up-in-.net-5-and-.net-core-3.1-applications%}#add-configuration-settings-in-the-startupcs-file) class provides a configuration setting for specifying the **TemplateDefinitionStorage**. Thus, you can navigate to a specific folder that stores all report templates: | ||
|
|
||
| ````CSharp | ||
| services.TryAddSingleton<IReportDesignerServiceConfiguration>(sp => new ReportDesignerServiceConfiguration | ||
| { | ||
| TemplateDefinitionStorage = new FileTemplateDefinitionStorage("templates_folder_path", new[] { "sub_folder_to_exclude" }), | ||
| }); | ||
| ```` | ||
|
|
||
| >note Report templates (.trtx files) can be stored only in the configured `Report Templates` folder. Other file formats are not allowed in the folder. | ||
| ## Managing Permissions | ||
|
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. This section is targeting the app developer, so I suggest taking it to another article. |
||
|
|
||
| To restrict specific actions or features for users on the client side, for example to restrict `Report Templates`, the [DeniedPermissions]({%slug telerikreporting/report-designer-tools/web-report-designer/web-report-designer-customization%}) setting of the **ReportDesignerServiceConfiguration** can be used. It allows developers to customize the designer experience by disabling certain tools, components, or capabilities based on application logic or user roles. | ||
|
|
||
| >note You can override the [GetDeniedPermissions]({%slug telerikreporting/report-designer-tools/web-report-designer/web-report-designer-customization%}) method in your custom implementation of the reporting service to apply different restrictions based on the logged-in user or other conditions. | ||
| #### Restricting the Templates Folder | ||
|
|
||
| ````CSharp | ||
| services.TryAddSingleton<IReportDesignerServiceConfiguration>(sp => new ReportDesignerServiceConfiguration | ||
| { | ||
| DeniedPermissions = ReportDesignerPermissionsBuilder.Build( | ||
| Permission.Commands_AssetsManager_ReportTemplates | ||
| ) | ||
| })); | ||
| ```` | ||
|
|
||
| Once the end-user is not granted permissions for the Report Templates, the following actions are available: | ||
|
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. Consider: Limited Access to Report Templates: If the end-user does not have permission to access report templates, the following actions will still be available: |
||
|
|
||
| * Create a New Report from a Template - The **From Template** option is still *visible* but *restricted*. The restricted user is not allowed to create new or upload templates, delete or edit any existing templates. However, consuming the already existing templates is allowed. | ||
|
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. Consider bullets for cleaner look, maybe: The From Template option remains visible even when the user lacks permissions to manage templates. In this restricted mode:
|
||
|
|
||
| |Restricted User|Default User| | ||
| |----|----| | ||
| ||| | ||
|
|
||
| * **Assets manager** - When a *restricted* user opens the Assets Manager, the `Report Templates` folder is invisible: | ||
|
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. Consider: Assets Manager Access As insivible might make some people think we just hide it, and they can navigate to it by doing ../Report Templates/.. etc. |
||
|
|
||
| |Restricted User|Default User| | ||
| |----|----| | ||
| ||| | ||
|
|
||
| * **Save Report As** - The *restricted* end-user can only save as a **Report**. The option for saving as a **Template** is hidden. | ||
|
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. Consider: For restricted users, the Save as Template option is completely hidden. They can only use the Save as Report functionality. |
||
|
|
||
| |Restricted User|Default User| | ||
| |----|----| | ||
| ||| | ||
|
|
||
| ## See Also | ||
|
|
||
| * [How to Edit a Report Template]({%slug web-report-designer-how-to-edit-a-report-template%}) | ||
| * [Setting up the Web Report Designer in .NET applications]({%slug telerikreporting/designing-reports/report-designer-tools/web-report-designer/how-to-set-up-in-.net-5-and-.net-core-3.1-applications%}) | ||
| * [Web Report Designer Customization]({%slug telerikreporting/report-designer-tools/web-report-designer/web-report-designer-customization%}) | ||
| * [Report Templates in Standalone Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/report-templates%}) | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
In my opinion, this should be a KB. The procedure described here can be summarized in up to two or three sentences tops, and up to one picture. If you accept my suggestion to split the
report-templatesarticle into two, you can describe the template editing in the designer-facing article by adding the two or three sentences and then referencing this KB there.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.
I was also hesitant about creating a docs article or a KB, but decided to stick to the rest of the content in the subfolder articles. I will extract this as a KB, ensuring it is also referred to in the WRD user guide.