Referencing Assemblies in an RDL File

업데이트: 2005년 12월 5일

To support the use of custom code assemblies in report definition files, two Report Definition Language (RDL) elements are included in the RDL specification: the CodeModules element and the Classes element.

The CodeModules element enables you to refer to managed code assemblies in report expressions. CodeModules is a top-level element that contains the reference to the assembly that you use in your report definition files to call specialized functions. An entry in a report definition that supports the use of a custom assembly might look like the following:

<CodeModules>
   <CodeModule>CurrencyConversion, Version=1.0.1363.31103, Culture=neutral, PublicKeyToken=null</CodeModule>
</CodeModules>

Instead of calling System.Reflection.Assembly.Load from your custom code, register your custom assemblies by either manually adding CodeModule elements to your RDL file or by using the References tab of the Report Properties dialog. For more information, see 식에 사용자 지정 코드 참조 사용(Reporting Services).

The Classes element supports the use of instance members in a report definition. Classes is a top-level element that contains a reference to the class name and an instance name. An entry in a report definition that supports the use of instance members might look like the following:

<Classes>
   <Class>
      <ClassName>CurrencyConversion.DollarCurrencyConversion</ClassName>
      <InstanceName>m_myDollarConversion</InstanceName>
   </Class>
</Classes>

For more information, see Accessing Custom Assemblies Through Expressions.

Change History

Release History

2005년 12월 5일

Changed content:
  • Calling System.Reflection.Assembly.Load not supported.

참고 항목

관련 자료

Using Custom Assemblies with Reports

도움말 및 정보

SQL Server 2005 지원 받기