Skip to content

Commit e63e569

Browse files
Dess wrd templates (#1870)
* Initial draft * Managing permission and How to edit a template * polished * Refactor the main article splitting in to one for end users and one for developers * Update configuring-report-templates.md * Update report-templates.md * Update report-templates.md * Update report-templates.md * Update configuring-report-templates.md * Update how-to-edit-a-report-template.md * Update report-templates.md * polishing after sync with Dancho * Update designing-reports/report-designer-tools/web-report-designer/configuring-report-templates.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> * Update designing-reports/report-designer-tools/web-report-designer/configuring-report-templates.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> * Update designing-reports/report-designer-tools/web-report-designer/configuring-report-templates.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> * Update user-guide/report-templates.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> * Update user-guide/report-templates.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> * Update user-guide/report-templates.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> * Update user-guide/report-templates.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> * Update user-guide/report-templates.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> * Update designing-reports/report-designer-tools/web-report-designer/configuring-report-templates.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> * Update designing-reports/report-designer-tools/web-report-designer/configuring-report-templates.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> --------- Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com>
1 parent d0be77a commit e63e569

23 files changed

+237
-1
lines changed

designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/report-templates.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ The Telerik Report Designer searches for and automatically loads templates from
4040

4141
* The default template directory located in the Telerik Report Designer’s default working directory. The default working directory is located in the user documents folder named Telerik Report Designer.
4242
* The template directory located in the application folder. The application folder is where the Telerik Report Designer executable is located.
43+
44+
45+
## See Also
46+
47+
* [Report Templates in Web Report Designer]({%slug web-report-designer-report-templates%})
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
---
2+
title: Configuring Report Templates
3+
page_title: Configuring Report Templates in Web Report Designer
4+
description: Learn more about Report Templates in the Telerik Reporting Web Report Designer, how to create and reuse them.
5+
slug: web-report-designer-report-templates
6+
tags: web, report, designer, wrd, report, template, trtx
7+
published: True
8+
position: 9
9+
---
10+
11+
<style>
12+
img[alt$="><"] {
13+
border: 1px solid lightgrey;
14+
}
15+
</style>
16+
17+
# Configuring Report Templates in Web Report Designer
18+
19+
|Minimum Version:|Q4 2025|
20+
|----|----|
21+
22+
The Web Report Designer lets you create report templates that simplify and streamline the report creation process. A **report template** is a reusable design that defines the layout, styling, and data structure of a report.
23+
24+
To control how application users utilize templates, developers can configure specific folders for storing report templates and manage user access to these folders.
25+
26+
## Configure Report Templates Folder
27+
28+
All report templates are stored in a specific **Report Templates** folder. A default folder 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.
29+
30+
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:
31+
32+
````CSharp
33+
services.TryAddSingleton<IReportDesignerServiceConfiguration>(sp => new ReportDesignerServiceConfiguration
34+
{
35+
TemplateDefinitionStorage = new FileTemplateDefinitionStorage("templates_folder_path", new[] { "sub_folder_to_exclude" }),
36+
});
37+
````
38+
39+
>note Report templates (.trtx files) can be stored only in the configured `Report Templates` folder. Other file formats are not allowed in the folder.
40+
41+
## Managing Permissions
42+
43+
To restrict specific actions or features for users on the client side, for example, to limit access to the `Report Templates` folder, use the [`DeniedPermissions`]({%slug telerikreporting/report-designer-tools/web-report-designer/web-report-designer-customization%}) setting of the `ReportDesignerServiceConfiguration`. This setting allows developers to customize the designer experience by disabling certain tools, components, or capabilities based on application logic or user roles.
44+
45+
````CSharp
46+
services.TryAddSingleton<IReportDesignerServiceConfiguration>(sp => new ReportDesignerServiceConfiguration
47+
{
48+
DeniedPermissions = ReportDesignerPermissionsBuilder.Build(
49+
Permission.Commands_AssetsManager_ReportTemplates
50+
)
51+
}));
52+
53+
>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 and apply different restrictions based on the currently logged-in user or other conditions.
54+
55+
## Allowed Operations for Restricted Users
56+
57+
````CSharp
58+
services.TryAddSingleton<IReportDesignerServiceConfiguration>(sp => new ReportDesignerServiceConfiguration
59+
{
60+
DeniedPermissions = ReportDesignerPermissionsBuilder.Build(
61+
Permission.Commands_AssetsManager_ReportTemplates
62+
)
63+
}));
64+
````
65+
66+
Once the end-user is **not** granted permissions for the Report Templates, the following actions are available:
67+
68+
* Create a New Report from a Template - The **From Template** option remains visible even when the user lacks permissions to manage templates. In this restricted mode:
69+
70+
* Users **cannot** create or upload new templates.
71+
* Users **cannot** delete or edit existing templates.
72+
* Users **can** still create new reports using the available templates.
73+
74+
>caption Restricted User
75+
76+
![Restricted User From Template ><](images/web-report-designer-report-templates-restricted-user.png)
77+
78+
>caption Default User
79+
80+
![Allowed User From Template ><](images/web-report-designer-report-templates-allowed-user.png)
81+
82+
* Opening the **Assets manager** - When a *restricted* user opens the Assets Manager, the `Report Templates` folder is invisible and inaccessible:
83+
84+
|Restricted User|Default User|
85+
|----|----|
86+
|![Restricted User Assets Manager ><](images/web-report-designer-report-templates-restricted-user-assets-manager.png)|![Allowed User Assets Manager ><](images/web-report-designer-report-templates-allowed-user-assets-manager.png)|
87+
88+
* **Save Report As** - The *restricted* end-user can **only** save as a **Report**. The option for saving as a **Template** is hidden.
89+
90+
|Restricted User|Default User|
91+
|----|----|
92+
|![Restricted User Assets Manager ><](images/web-report-designer-report-templates-restricted-user-save-as.png)|![Allowed User Assets Manager ><](images/web-report-designer-report-templates-allowed-user-save-as.png)|
93+
94+
## See Also
95+
96+
* [How to Edit a Report Template]({%slug web-report-designer-how-to-edit-a-report-template%})
97+
* [Working with Report Templates]({%slug web-report-designer-report-templates%})
98+
* [Report Templates in Standalone Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/report-templates%})

designing-reports/report-designer-tools/web-report-designer/how-to-set-up-in-dotnet.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ public void ConfigureServices(IServiceCollection services)
106106
});
107107
services.TryAddSingleton<IReportDesignerServiceConfiguration>(sp => new ReportDesignerServiceConfiguration
108108
{
109+
TemplateDefinitionStorage = new FileTemplateDefinitionStorage("templates_folder_path", new[] { "sub_folder_to_exclude" }), // introduced in Q4 2025
109110
DefinitionStorage = new FileDefinitionStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports"), new[] { "Resources", "Shared Data Sources" }),
110111
ResourceStorage = new ResourceStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports", "Resources")),
111112
SharedDataSourceStorage = new FileSharedDataSourceStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports", "Shared Data Sources")),
112-
SettingsStorage = new FileSettingsStorage(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Telerik Reporting"))
113+
SettingsStorage = new FileSettingsStorage(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Telerik Reporting"))
113114
});
114115
}
115116
````
Loading
10.6 KB
Loading
97.3 KB
Loading
Loading
Loading
98.5 KB
Loading
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: How to Edit a Report Template
3+
page_title: How to Edit a Report Template in Web Report Designer
4+
description: Learn more about Report Templates in the Telerik Reporting Web Report Designer, how to create and reuse them.
5+
type: how-to
6+
slug: web-report-designer-how-to-edit-a-report-template
7+
tags: web, report, designer, wrd, report, template, trtx, edit
8+
published: True
9+
position:
10+
tags:
11+
res_type: kb
12+
---
13+
14+
|Minimum Version:|Q4 2025|
15+
|----|----|
16+
17+
To edit an existing Report Template (.trtx file), follow the steps:
18+
19+
1. Select the `New Report` option from the Menu:
20+
21+
<img style="border: 1px solid gray;" src="images/wrd-create-menu-option.png" alt="Create a Report"/>
22+
23+
1. Create a Report **From Template**:
24+
25+
<img style="border: 1px solid gray;" src="images/web-report-designer-report-templates-create-from-template.png" alt="Create From a Template"/>
26+
27+
1. Select the Report Template (.trtx file) you want to edit:
28+
29+
<img style="border: 1px solid gray;" src="images/web-report-designer-report-templates-load-template.png" alt="Load a Template"/>
30+
31+
1. Make the desired changes to the loaded predefined report
32+
33+
1. Save as a **Template** overwriting the previously selected .trtx file:
34+
35+
<img style="border: 1px solid gray;" src="images/web-report-designer-edit-report-templates-load-template.gif" alt="Edit a Template"/>
36+
37+
## See Also
38+
39+
* [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%})
40+
* [Web Report Designer Customization]({%slug telerikreporting/report-designer-tools/web-report-designer/web-report-designer-customization%})
41+
* [Report Templates in Standalone Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/report-templates%})

0 commit comments

Comments
 (0)