This is a migrated thread and some comments may be shown as answers.

Code behind logic

1 Answer 640 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yoly
Top achievements
Rank 2
Yoly asked on 10 Feb 2020, 12:46 PM

I have some old reports that were created using the Visual Studio designer. These reports also include some logic in events, such as positioning and sizing elements dynamically, given that some reports have a very complex layout that at the time was impossible to replicate without adding this “code behind” logic.

With.Net Core applications, since the Telerik Reporting Visual Studio Designer doesn’t work on .Net Standard libraries, what path should I take in order to have some custom logic run within the report? If I start using the stand-alone designer, could I add some programming logic to the report with an .TRDP file?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 13 Feb 2020, 09:15 AM

Hi Yolanda,

You may add the previously created Visual Studio reports in a .NET Core ClassLibrary project and they should be successfully resolved by the Reporting Engine running under .NET Core environment. The only drawback is the absence of a Visual Studio Report Designer for .NET Core/Standard.

If it is necessary to edit existing reports or create new ones you may use the Report Designer in a ReportLibrary project in .NET Framework, and then move the generated CS files in the .NET Core ClassLibrary.

The declarative report definitions (TRDP/X files) cannot have code behind. We provide other means for modifying the report layout run-time. For example ExpressionsBindings and Conditional Formatting. We strongly recommend using these mechanisms instead of custom code.

Regards,
Todor
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Yoly
Top achievements
Rank 2
Answers by
Todor
Telerik team
Share this question
or