Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

708 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

18 Experts available now in Live!

Get 1:1 Help Now