WPF .trdp not calling code behind .cs

4 posts, 0 answers
  1. Ronald
    Ronald avatar
    3 posts
    Member since:
    May 2018

    Posted 01 Aug Link to this post

    I've added a special logic on the backend of our reports to automatically measure table column widths.

     

    The actual logic works on the preview mode of the designer but when compiled into a .trdp it doesn't work anymore. It's not being called anymore and I'm sure its not called because i added logging on the backend code.

  2. Ronald
    Ronald avatar
    3 posts
    Member since:
    May 2018

    Posted 01 Aug Link to this post

    Also, we use a report service and not just run them locally. 
  3. Ronald
    Ronald avatar
    3 posts
    Member since:
    May 2018

    Posted 03 Aug Link to this post

    up
  4. Silviya
    Admin
    Silviya avatar
    176 posts

    Posted 06 Aug Link to this post

    Hello Ronald,

    In general, the Standalone Report Designer works only with XML report definitions (.trdp/x). Converting reports from a class library into TRDP format can be achieved with Import Wizard built in Standalone Designer. Step by step instructions could be found in How to: Import reports created with the VS Report Designer help article.

    However, note that event handlers and methods can not be imported. Custom code like properties, events, methods, instantiated data objects will not be serialized in XML along with the settings of the report.
    A possible scenario is creating an user function for the custom methods and add references into configuration section of the Standalone Designer. More details can be found in Extending Report Designer help article. After that, you'll have to configure Telerik Report Server to use reports with custom functions.

    If you face further issues, we would need the problematic report and the DLL of the user function, so we can test it locally.

    Regards,
    Silviya
    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