Custom user function not work

3 posts, 1 answers
  1. Victor
    Victor avatar
    8 posts
    Member since:
    Jul 2014

    Posted 12 Nov 2016 Link to this post


    when a .trdp file contains custom user function,error information see attached.

    Telerik.Reporting.UriReportSource uriReportSource =new Telerik.Reporting.UriReportSource(); 
     uriReportSource.Uri = RootDir + "\\TestReport\\HomePage.trdp";
     Telerik.Reporting.Processing.RenderingResult result =reportProcessor.RenderReport("pdf", uriReportSource, deviceInfo);

  2. Answer
    Katia avatar
    693 posts

    Posted 14 Nov 2016 Link to this post

    Hi Victor,

    In order to use custom functions that reside in a separate assembly, the configuration file of the start project needs to have assemblyReferences element in Telerik.Reporting configuration section with the name of the assembly with user functions.

    An example is provided in Extending Expressions help article. The changes need to be applied to the app.config/web.config file of the start project.

    To preview the report that uses custom functions in Standalone Designer, the changes needs to be applied to Telerik.ReportDesigner.exe.config or Telerik.ReportDesigner.x86.exe.configExtending Report Designer.

    Telerik by Progress
    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
  3. Victor
    Victor avatar
    8 posts
    Member since:
    Jul 2014

    Posted 15 Nov 2016 Link to this post

    Thank you very much
Back to Top