Report Properties - References Tab (Visual Studio Report Designer)
Use the References tab of the Report Properties dialog box to reference custom assemblies used in expressions within the report. References for the Microsoft.VisualBasic, System.Convert, and System.Math assemblies are added automatically during compilation.
The additional assemblies and functions that you specify can be used in code and expressions that you add to a report.
Running custom assemblies in a report is not allowed by default. To use custom assemblies in a report, you must call AddTrustedCodeModuleInCurrentAppDomain or ExecuteReportInSandboxAppDomain to allow custom assemblies to execute. Note that if you use ExecuteReportInSandboxAppDomain, custom assemblies are prevented from accessing the file system or network.
Note
Referencing, using, and deploying custom assemblies in a report definition file is documented in SQL Server Books Online. You can access this documentation from most editions of Visual Studio 2008 or online in the MSDN library. For more information, search for "Using Custom Assemblies with Reports" at msdn.microsoft.com.
Options
- References
Lists the assemblies that the report references. The assembly must be available on the computer on which your application runs.
- Assembly name
Click the add reference (...) button to retrieve the assembly name from an assembly. Click the delete button to remove the assembly reference.
- Classes
Lists the instance classes that are used by the report. The class list is used only by instance-based members, not static members.
- Class name
Type the name of the class.
- Instance name
Type a name for the instance of the class.
See Also
Reference
Report Properties Dialog Box - General Tab (Visual Studio Report Designer)
Concepts
Built-in Functions for Reports (Visual Studio Report Designer)
Adding Custom Code to a Report (Visual Studio Report Designer)
Using Expressions in a Report (Visual Studio Report Designer)
ReportViewer Controls (Visual Studio)
ReportViewer Web Server and Windows Forms Controls