Pro SQL Server 2012 Reporting Services

(sharon) #1
CHAPTER 7  USING CUSTOM .NET CODE WITH REPORTS


  1. With the References section active, click the Add button in the assemblies
    section.

  2. Click the ellipsis button, and then click the Browse tab. Browse to the location
    of the Employee.dll file and select it. If you have already placed the built DLL in
    the private assemblies folder for Visual Studio, you should do this now so you
    can reference that location. When you are done, the Report Properties dialog
    box should look like Figure 7-11.


Figure 7-11. References tab


 Note The class list on the References tab of the Report Properties dialog box is used only by instance-based


members, not static members.


To use the custom code in your assembly in a report expression, you must call a member of a class
within the assembly. You can do this in different ways depending on how you declared the method.

Free download pdf