Solved

How to call manually created VB function and .NET function in SSRS expression

Posted on 2014-01-22
3
586 Views
Last Modified: 2014-01-24
How to call manually created VB function and .NET function in SSRS expression (in RDL File) and how to deploy or test them whether it works or not?

Please do suggest. Thanks in advance.
0
Comment
Question by:Easwaran Paramasivam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 39802803
Are you looking for a way to call a function in a custom assembly or would you like to embed the function code inside the report?  Both are possible but the implementation is of course different.

To embed a VB function inside the report, right-click the yellow report background and select Report Properties... Switch to the Code tab and type (or paste) your function there.

The easiest is to first implement the function in a simple VB.NET Forms application, then copy it from there.  That way you can test the function before using it in the report (which doesn't support real debugging).

Here is the syntax to call the function in report expressions.  Imagine a function called YourFunction that takes one parameter:

=Code.YourFunction(Fields!SomeField.Value)

More info: Add Code to a Report (SSRS)
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 39805887
Thanks.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

742 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question