Solved

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

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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 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.

740 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