Issue with User defined function in ReportViewer

3 posts, 1 answers
  1. Ellis
    Ellis avatar
    10 posts
    Member since:
    Jul 2015

    Posted 22 Jul 2015 Link to this post

    Hi, I'm trying out your reporting suite, but I've encountered a small issue while trying with user defined functions. I created a simple function, compiled and moved the DLL to the report designer folder and added the Assembly References and it's working properly.

    The problem comes when I try to load the report in the report designer as an UriReportSource in my application. The textbox containing the function says "The expression contains object 'xxxx' that is not defined in the current context.".

    Could you please point me in the right direction to overcome this issue. Any help will be greatly appreciated.

  2. Answer
    Stef avatar
    3036 posts

    Posted 27 Jul 2015 Link to this post

    Hi Ellis,

    Please check the following KB article that elaborates how to handle reports which use external assemblies - Previewing a report definition that uses an external assembly.

    In general, you need to extend the application config file to load the external assembly as this was done for the Standalone Report Designer.

    Let us know if you have any further questions.

    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. DevCraft banner
  4. Ellis
    Ellis avatar
    10 posts
    Member since:
    Jul 2015

    Posted 13 Aug 2015 Link to this post

    Thank you Stef. That worked perfectly. Seems to be that I wasn't adding the reference to the assembly in the right config file.
Back to Top