Follow these simple steps to create and deploy custom assembly inorder to access in reports.
I will take you through a simple example where you wanted to override colors for bars inthe chart.
1) Create a Class library called ReportStyle.
2) Define a function called GetColor() which returns color.
[ This function could read predefined colors from database or from web.config file. ]
3) Compile the ClassLibrary. Pick the dll from bin folder and place it in the following path to reuse it across applications.
-----------------------------------------------------------------------------
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies
--------------------------------------------------------------------------------
4) Now Right click on report designer. Go to report properties, Reference tab.
5) Under References, Browse for the Assembly ReportStyle.dll and add.
6) Under Classes, provide the class name and instance name.(Important point :provide full class name)
7) Go to Chart Properties, DataTab.
8) Go to appearance tab for chart values and provide the code to set color programatically as below =Code.obj.GetColor(!fieldvalue)
9) Inorder to access it from report server, place the same dll in the following installed path: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin
10) Bydefault full trust is not given to the dll.
Therefore go to rssrvpolicy.config and provide the class name or open the web.config and edit node as follows:
[ Other alternative is to enable it through CAS in .Net ]
Thats it and u r done.