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

Issue with User defined function in ReportViewer

2 Answers 301 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Ellis
Top achievements
Rank 1
Ellis asked on 22 Jul 2015, 09:11 PM

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 VB.net 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 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 27 Jul 2015, 08:18 AM
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.

Regards,
Stef
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
0
Ellis
Top achievements
Rank 1
answered on 13 Aug 2015, 02:57 PM
Thank you Stef. That worked perfectly. Seems to be that I wasn't adding the reference to the assembly in the right config file.
Tags
Report Designer (standalone)
Asked by
Ellis
Top achievements
Rank 1
Answers by
Stef
Telerik team
Ellis
Top achievements
Rank 1
Share this question
or