Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Alpesh Patel is working on Various Microsoft Products (Visual Studio 6.0/2005/2008, SQL Server 2005/2008, BI Tool etc)

Administrators

Browse by Tags · View All
SQL Server 9
SSIS 5
#SQLServer 4
#BI 3
BI 3
SSRS 3
SQL Server 2012 2
TSQL 2
Integration Service Catalog 1
Master Data Service 1

Archive · View All
September 2011 3
December 2012 2
October 2011 2
August 2012 1
July 2012 1
February 2012 1
November 2011 1
August 2011 1

Alpesh Patel's Blog

Variable, Custom Code and Assembly reference in SSRS

Sep 2 2011 8:41AM by Alpesh Patel   

How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS.

Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps need to be applied. Let's look in details.

1. Variable in SSRS

If you want to use or hold value through out the request then refer the SSRS variables. It is available in any part of report and lifetime of variable is request to server. It reset when new request comes to server.

You can create variable using Menu=>Report=>Report Properties=>Variables

Untitled

You can use this variable in calculation of field or anywhere in the report as below:

Untitled1

2. Custom Code in SSRS

Custom Code is very useful where you can not achieve desire result using Sum/Avg/Count/Running Total.

For example in report you are displaying records (Products) those have price > $10 That time you can hide those rows in report but total not eliminate hidden rows in count. In these type of case it's good to have custom code. Let's see how can we create custom code.

You can create custom code at Menu=>Report=>Report Properties=>Code

Untitled2

Note: Make sure SSRS support custom code in VB only.

Let's time to see how to use the custom code in report fields.

Untitled3

3. Assembly Reference in SSRS

This is the very crucial part of the Assembly reference in SSRS. It is very useful when you want to use logic in other reports rather than in single one (Shared custom code).

To do that Just create one Library (As you know it is basic task.) Build that and paste it to

Consider for SQL 2008

To load assembly in SSRS
%\Program Files%\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin

To load assembly in BIDS (Development environment)
%\Program Files%\Microsoft Visual Studio %Installed Version%\Common7\IDE\PrivateAssemblies

Now time to consume or add assembly reference to SSRS.

You can add assembly reference  at Menu=>Report=>Report Properties=>References

Untitled4

1. Click on Add Assembly reference and select your library.
2. Add class and create instance in second frame.

Untitled5

That's it for now. Hope meet with new Topic again.

Thanks,

Alpesh Patel

Tags: SSRS,


Alpesh Patel
36 · 5% · 1663
3
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

"Variable, Custom Code and Assembly reference in SSRS" rated 5 out of 5 by 3 readers
Variable, Custom Code and Assembly reference in SSRS , 5.0 out of 5 based on 3 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]