Solved

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

Posted on 2014-01-22
3
555 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

816 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now