?
Solved

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

Posted on 2014-01-22
3
Medium Priority
?
636 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 2000 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Suggested Courses

771 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