Skip to content

Commit d84fe05

Browse files
add article for .net designer codedom (#1727)
* add article for .net designer codedom * Update srd-net-working-with-type-report-definitions.md * Update srd-net-working-with-type-report-definitions.md --------- Co-authored-by: Todor Arabadzhiev <[email protected]>
1 parent b1585e2 commit d84fe05

File tree

8 files changed

+65
-3
lines changed

8 files changed

+65
-3
lines changed

designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/how-to-import-reports-created-with-the-vs-report-designer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Learn how to import type (CSharp or Visual Basic) report definitio
55
slug: telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/how-to-import-reports-created-with-the-vs-report-designer
66
tags: how,to,import,reports,created,with,the,vs,report,designer
77
published: True
8-
position: 6
8+
position: 7
99
previous_url: /standalone-report-designer-import-clr-reports
1010
---
1111

29.9 KB
Loading
76.2 KB
Loading
47.3 KB
Loading
69.1 KB
Loading
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: Working with Type Reports
3+
page_title: Using the Standalone Report Designer for .NET for Type Reports
4+
description: "Learn how to use the Standalone Report Designer for .NET to load, design, and preview Type(.CS/.VB) Reports."
5+
slug: telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/srd-net-working-with-type-report-definitions
6+
tags: designing,using,loading,importing,previewing,type,reports,standalone,report,designer,for,net
7+
published: True
8+
position: 6
9+
---
10+
11+
# Type Reports in the Standalone Report Designer for .NET
12+
13+
Starting with the [Progress® Telerik® Reporting 2025 Q2 (19.1.25.521)](https://www.telerik.com/support/whats-new/reporting/release-history/progress-telerik-reporting-2025-q2-19-1-25-521) release, the [Standalone Report Designer for .NET]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/overview%}#starting-the-standalone-report-designer-for-net) supports loading, designing, and previewing Type Report definitions hosted in CS or VB projects targeting .NET.
14+
15+
>note The feature is in **Preview** state and will be further developed in the coming releases.
16+
17+
In this article, we will explain and visually demonstrate how the Standalone Report Designer for .NET can be used to open, edit, and preview .NET type (.CS/.VB) reports, and will also share what the designer does behind the scenes to handle the previously unsupported format.
18+
19+
## Import Code File Wizard
20+
21+
Just as one would open a **TRDP/TRDX** file, now the **.CS/.VB** files will also be openable from the standard open file menu of the Standalone Report Designer for .NET.
22+
23+
1. Upon selecting a .NET type report to open, the `Import Code File Wizard` will start, and it will automatically populate the necessary inputs:
24+
25+
![The first step of the Import Code File Wizard where the paths to the report files are shown.](./images/srd-net-type-reports/srd-net-open-type-report.png)
26+
27+
> At this step, it is important to ensure that the project that will be used to build the report targets `.NET`. A project that targets the older `.NET Framework` would produce an assembly that is not compatible with the Standalone Report Designer for .NET.
28+
29+
1. The next step is building the project. This step will create a new folder in the same directory as the executable file of the Standalone Report Designer for .NET whose name will be the *name of the Type Report*.
30+
31+
![The second step of the Import Code File Wizard where the project is built and the build information is outputed to the GUI.](./images/srd-net-type-reports/srd-net-build-type-report-project.png)
32+
33+
## Working with the .NET Type Report in the Report Designer
34+
35+
Once the **Import Code File Wizard** is completed, the imported report will be automatically opened in a new tab in the Standalone Report Designer for .NET application.
36+
37+
When a .NET Type Report is opened in the application, and this is the currently focused tab, a new tab will appear in the toolbar menu - `.NET Report Tools`.
38+
39+
![The .NET Report Tools tab in the Standalone Report Designer for .NET's toolbar.](./images/srd-net-type-reports/srd-net-preview-options.png)
40+
41+
- `Rebuild` - This button will trigger a rebuild of the project that was initially used to import the report. The newly generated assemblies of the built project(s) will be copied to the dedicated directory for the type report.
42+
- `Preview with code behind` - This button will trigger a preview of the .NET Type Report with any custom code behind included. For example, custom code written in [report events]({%slug telerikreporting/using-reports-in-applications/program-the-report-definition/report-events/overview%}) should be respected when previewing through this button.
43+
44+
> Be advised that our algorithm mimics the Visual Studio one only semantically. This means that the initial report modification will introduce significant changes in the serialized code, but the component tree will be preserved. Please use versioning for your reports to have clear tracking of the changes. The non-designer partial class files stay intact, so custom code is preserved and ready to work alongside the generated design logic.
45+
46+
## Internal Logic for .NET Type Reports in the Report Designer
47+
48+
While it will appear that the .NET Type Report is being rendered by the Standalone Report Designer for .NET, internally, we read and display the report definition as a `TRDP` file.
49+
50+
When the .NET Type Report is initially imported, the designer creates a dedicated folder based on the type name of the report class. This folder contains the following files and subfolders:
51+
52+
![The imported .NET Type Report's automatically created folder with its contents.](./images/srd-net-type-reports/srd-net-type-report-folder.png)
53+
54+
- `bin` - Contains the assembly of the built project of the report and all of its dependent assemblies.
55+
- `{ReportName}.Designer.cs|.vb` - A backup of the `.designer` file that can be used in case our logic fails and the original file is wrongly edited by the application.
56+
- `{ReportName}.json` - A `JSON` file containing the report's type name, the loaded full type, paths to the project file, the designer file, etc.
57+
- `{ReportName}.trdp` - The actual report definition file loaded and displayed by the Standalone Report Designer for .NET. When editing the .NET Type Report from the tab in the designer application, behind-the-scenes, this is the actual file that is being changed, and its contents are later serialized from `XML` to `C#/VB` code in the `.designer` file through the [CodeDOM APIs](https://learn.microsoft.com/en-us/dotnet/api/system.codedom?view=windowsdesktop-9.0). Our code keeps the two files - the original `.designer` and the `TRDP` files in live-sync.
58+
59+
## See Also
60+
61+
* [.NET Coded Report Design, No IDE Strings Attached](https://www.telerik.com/blogs/net-coded-report-design-no-ide-strings-attached)
62+
* [How to use Visual Studio Report Designer to edit CS/VB Reports in .NET Projects]({%slug how-to-use-vs-designer-in-dotnet-core%})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Learn more about the recommended approaches for troubleshooting th
55
slug: telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/standalone-report-designer-problems
66
tags: standalone,report,designer,problems
77
published: True
8-
position: 8
8+
position: 9
99
previous_url: /Troubleshooting-Standalone-Report-Designer-problems, troubleshooting-design-time
1010
---
1111

designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/using-event-handlers-in-srd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Learn how to use report event handlers in declarattive report defi
55
slug: telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/using-event-handlers-in-srd
66
tags: crating,using,event,handlers,standalone,report,designer
77
published: True
8-
position: 7
8+
position: 8
99
---
1010

1111
# Using event handlers in the Standalone Report Designer

0 commit comments

Comments
 (0)