Last post May 30, 2008 02:09 PM by lblanton
May 19, 2008 03:05 PM|lblanton|LINK
I need to call a method to populate a textbox in a RDLC report. The function is contained in a seperate class within my web project. How do I reference the class so that my RDLC can see it. The class is named IMS.Foodservice.Functions, the function is
called RollUp(A, B).
Thanks in advance for any assistance.
May 21, 2008 06:45 AM|Nai-Dong Jin - MSFT|LINK
From your description, it seems that you want to embedded a function in your rdlc report, right?
What you can add is only the VB functions. When you open your report to the designer, right click in the blank area of the report, and choose properties.
There will be a tab named "Code", just click on it, and you'll have a blank area that you can put your VB function in it.
i.e. To call this function use this expression
May 21, 2008 11:21 AM|lblanton|LINK
I am aware of that and do it all the time however this is a situation where I need to call an external method due to its complexity. I am looking for a way to call a method / function that is contained in a class in the project.
May 22, 2008 03:27 AM|Nai-Dong Jin - MSFT|LINK
Well, sorry for misunderstanding. And what you want is to use custom assemblies or embedded code in Reporting Services, right?
You can try the following article, which is a step by step tutorial to call the functions which build in your custom assembly in reporting service.
May 24, 2008 07:54 AM|pareshjagatiya|LINK
Here's how you can have a custom assembly working in SSRS.
May 30, 2008 02:09 PM|lblanton|LINK
Sorry for taking some time but I have been away. It seems that you are saying that in the RDLC you can use a Custom Assembly or write code in the RDLC code window.
Does this mean that you cannot reference a method in the web project that contains the RDLC? If you can how do you do it?