How to Add Custom Code in SSRS Report - SQL Server Reporting Services (SSRS) Interview Questions and Answers

There could be situations where we don't have built in function/s available in SSRS. we can write our custom functions/code in SSRS Report.

Let's say if we would like to create a function that should be able to accept two string fields and return us concatenated output. For example,This function can be used to concatenate first name and last Name columns. Again this is just to provide you example, We know that concatenation can be done by using expressions.

Here are the steps to add the Custom Code in SSRS.

Step 1: 

Go to Report Tab and then go to Report Properties in SQL Server Data Tools(SSDT)

Step 2:

Write your code in Editor. You can use sample code provided.

Public Function StrConcate(byVal FirstName as string, byVal LastName as string) As string
   dim FullName as String
        FullName = FirstName+" "+LastName 
  return FullName 
End Function 

How to write Custom Code in SSRS report - SSRS Interview Questions and Answers

Step 3: Use the Function we wrote

Let's say if I have two fields called SalePersonFName and SalePersonLName and I would like to concatenate, I can use StrConcate function in expressions as shown below.

How to use Custom Code in SSRS Report - SSRS Interview Questions and Answers


  1. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. custom writing

  2. all expain by step by step . good report.

  3. The buying and offering of a home can be a difficult and frustrating task. For starters reason or still another, many individuals and individuals It Sevices

  4. We've all heard the phrase "we've more computing energy on our pc than we'd in the very first place taxi", or some plan of. Managed IT Services

  5. Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. los angeles it support

  6. Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. custom tote bags

  7. Writing is a process of creative work that will require the uniqueness of each author. Therefore, the most effective method for writing is the way you find and develop while you write your pieces. So, what I am going to share with you here is the approach that you can do to find a way to write the most suitable for you.