Skip to content

Commit 42741c6

Browse files
github-actions[bot]KB Botdessyordanovatodorarabadzhiev
authored
Added new kb article convert-cs-reports-to-trdp-telerik-reporting (#1535)
* Added new kb article convert-cs-reports-to-trdp-telerik-reporting * Converting .cs Reports to .trdp Format in Telerik Reporting * version * Update convert-cs-reports-to-trdp-telerik-reporting.md --------- Co-authored-by: KB Bot <[email protected]> Co-authored-by: Desislava Yordanova <[email protected]> Co-authored-by: Todor Arabadzhiev <[email protected]>
1 parent 54b0b4d commit 42741c6

10 files changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
title: Converting .cs Reports to .trdp Format in Telerik Reporting
3+
description: Learn how to transition from .cs report files to the .trdp format in Telerik Reporting, enabling easier report management and distribution.
4+
type: how-to
5+
page_title: How to Convert CSharp Report Files to TRDP Format in Telerik Reporting
6+
slug: convert-cs-reports-to-trdp-telerik-reporting
7+
tags: reporting, convert, import, trdp, conversion
8+
res_type: kb
9+
ticketid: 1669949
10+
---
11+
12+
## Environment
13+
14+
| Version | Product | Author |
15+
| --- | --- | ---- |
16+
| 18.3.24.1112+| Telerik Reporting|[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)|
17+
18+
## Description
19+
20+
This tutorial shows how to convert types inheriting the base class [Telerik.Reporting.Report](/api/telerik.reporting.report) created with the Visual Studio Report Designer to `.trdp` format for various reasons, such as ease of use or distribution. This KB article also answers the following questions:
21+
- How can I manage .cs reports in the Standalone Report Designer?
22+
- Is it possible to convert code-based reports to the TRDP format?
23+
- What steps should I follow to transition from .cs report files to .trdp in Telerik Reporting?
24+
25+
## Solution
26+
27+
Let's start with a Class library project that contains the reports:
28+
29+
![Class Library with Reports](images/reports-class-library.png)
30+
31+
The project targets .NET Framework 4.6.2 or higher:
32+
33+
![Target Framework](images/target-framework.png)
34+
35+
>note For projects targeting .NET, use the Standalone Report Designer for .NET.
36+
37+
To convert a `.cs` report to a `.trdp` report, use the [Standalone Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/overview%}). This tool allows for importing `.dll` files produced from projects containing types inheriting `Telerik.Reporting.Report`, facilitating the conversion process.
38+
39+
### Steps for Conversion
40+
41+
1. **Compile the Project**: Ensure your project containing the `.cs` report files is compiled successfully, generating a `.dll` file that includes the Report types.
42+
1. Copy the produced dll (e.g. ProductCatalogLibrary.dll) and paste it next to the `exe` of the appropriate report designer considering the Target framework of the project:
43+
44+
![Same Folder](images/same-folder.png)
45+
46+
1. **Open Standalone Report Designer**: Launch the Telerik [Standalone Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/overview%}).
47+
1. **Add an Assembly Reference** to the Standalone Report Designer: [Extending Report Designer to Recognize Custom Assemblies]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/configuration/extending-report-designer%}).
48+
49+
![Assembly Reference](images/assembly-reference.png)
50+
51+
1. **Import the DLL**: From the Report Designer, select to import reports, and navigate to the `.dll` file produced by your project from the first step above. The Standalone Report Designer will launch the [Import Report Wizard]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/tools/report-wizards/import-report-wizard%}) and will list all reports available in the `.dll` for import. Follow the wizard:
52+
53+
![Start Import Report Wizard](images/select-dll.png)
54+
55+
![Select Reports to Convert](images/select-reports-to-convert.png)
56+
57+
![Output Settings](images/output-settings.png)
58+
59+
![Import Summary](images/import-summary.png)
60+
61+
1. **Save as TRDP**: After successfully importing the `.cs` reports, save them in the `.trdp` format using the Standalone Report Designer's save functionality.
62+
63+
![Converted Report](images/converted-trdp-report.png)
64+
65+
## See Also
66+
67+
- [Standalone Report Designer Overview]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/overview%})
68+
- [How to Import Reports Created with the VS Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/how-to-import-reports-created-with-the-vs-report-designer%})
69+
- [Extending Report Designer at a Glance]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/configuration/extending-report-designer%})
107 KB
Loading
Loading
20.5 KB
Loading
20.2 KB
Loading
Loading

knowledge-base/images/same-folder.png

6.03 KB
Loading

knowledge-base/images/select-dll.png

84 KB
Loading
Loading
35.3 KB
Loading

0 commit comments

Comments
 (0)