How to export visual part of Visual Studio editor?

1 Answer 11 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 ...

 

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