Code behind logic

2 posts, 0 answers
  1. Yoly
    Yoly avatar
    28 posts
    Member since:
    Apr 2007

    Posted 10 Feb 2020 Link to this post

    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.

  2. Todor
    Todor avatar
    651 posts

    Posted 13 Feb 2020 Link to this post

    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.

    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
Back to Top