How to export visual part of Visual Studio editor?

1 Answer 18 Views
.NET Framework Report Designer (standalone) Report Parameters Serialization
Matěj
Top achievements
Rank 1
Matěj asked on 05 Aug 2025, 05:58 AM

I finally figured out that I can transfer any Telerik design in Clipboard:


            IDataObject dataObject = Clipboard.GetDataObject();
            if (dataObject.GetDataPresent("CF_TELERIK_REPORTING_NET20"))
            {
                var services = new ServiceCollection();
                ServiceProvider provider = services.BuildServiceProvider();
                //IServiceProvider provider = new DefaultServiceProviderFactory().CreateServiceProvider(services);
                byte[] data = (byte[])dataObject.GetData("CF_TELERIK_REPORTING_NET20");
                var service = new CodeDomComponentSerializationService(provider);
                using (var stream = new MemoryStream(data))
                using (SerializationStore store = service.LoadStore(stream))
                {
                    //using var store = (CodeDomSerializationStore)service.LoadStore(stream);
                    var components = service.Deserialize(store);
                    store.GetType();
                }
            }
However Standalone Editor disallow to re-create copied structure on root component. It insists to copy per section - per group header, footer, ... So it is feasable to transfer GUI from VisualStudio to Standalone editor this way, but either paste options could allow to re-create report parameters, properties and groups or simply VisualStudio editor can have simple export option. Since I myself was able to recreate functional Report from clipboard serialized format and gain working TRDX, I see no reason why there should be export limitation or paste limitation ...

 

 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 07 Aug 2025, 01:57 PM

Hello Matěj,

If you want to produce a TRDP/TRDX report from a Visual Studio report, please check the Standalone Report Designer functionality described in the article Importing reports created with the VS Report Designer.

The vice-versa transformation is available in the Visual Studio Report Designer - Importing Reports Created with the Standalone or Web Report Designer.

The Copy/Paste option between the desktop designers is also available for the report items. Indeed, you cannot copy whole sections, Report Parameter settings, etc. Feel free to log a feature request for your requirements into our public feedback portal. We already have one of them - Allow Copy/Paste of Report Parameters between reports.

Regards,
Todor
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Matěj
Top achievements
Rank 1
commented on 08 Aug 2025, 10:15 AM

That is super complicated and still not working. No matter what importing C# DLL never worked to me in Standalone editor.

 

I've tried like a lot of combinations - a lot of Standalone versions, x86 vs x64 builds - either I am getting some random errors or No reports to import. Report Designer R2 2023 and:

My reports are in .NET Framework 4.8 DLL ... So I would need some higher, but not actual version? Yet all structures ale already avaliable, as I am poiting out by my clipboard fetch, I just need DLL combat because only option is to import whole DLL. And all of this just because .NET 8 is not supporting VS editor ...

 

Todor
Telerik team
commented on 13 Aug 2025, 06:16 AM

Hi Matěj,

Please note that starting with Telerik Reporting 2025 Q2 (19.1.25.521), you may use the Standalone Report Designer for .NET to edit CS reports hosted in .NET projects. The functionality is further improved in the upcoming release today.

Regarding the import ot Type report definitions in the Standalone Designer, the functionality is available for the .NET Framework version of the designer. The latter can import report types that inherit from our Telerik.Reporting.Report class and have a default constructor.

You may attach a Trace Listener to the designer to check for relevant errors - Troubleshooting Standalone Report Designer.

Feel free to send us your ReportLibrary project so we can try to convert your reports to TRDP files.

Tags
.NET Framework Report Designer (standalone) Report Parameters Serialization
Asked by
Matěj
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or