사용자가 만든 각 Reporting Services 데이터 처리 확장 프로그램은 고유한 네임스페이스에 할당되고 라이브러리 또는 어셈블리 파일에 기본 제공되어야 합니다. 네임스페이스의 정확한 이름은 중요하지 않지만 고유해야 하며 다른 확장과 공유되지 않아야 합니다. Microsoft는 Reporting Services와 함께 제공되는 데이터 처리 확장 프로그램에 네임스페 Microsoft.ReportingServices.DataProcessing 이스를 사용합니다. 회사의 데이터 처리 확장 프로그램에 대한 고유한 네임스페이스를 만들어야 합니다.
다음 예제에서는 데이터 처리 인터페이스 및 유틸리티 클래스를 포함하는 네임스페이스를 사용하는 Reporting Services 데이터 처리 확장을 시작하는 코드를 보여 줍니다.
Imports System
Imports Microsoft.ReportingServices.DataProcessing
Imports Microsoft.ReportingServices.Interfaces
Namespace CompanyName.ExtensionName
...
using System;
using Microsoft.ReportingServices.DataProcessing;
using Microsoft.ReportingServices.Interfaces;
namespace CompanyName.ExtensionName
{
...
Reporting Services 데이터 처리 확장 프로그램을 컴파일할 때 데이터 처리 확장 프로그램 인터페이스가 포함되어 있으므로 컴파일러에 Microsoft.ReportingServices.Interfaces.dll대한 참조를 제공해야 합니다. Microsoft.ReportingServices.DataProcessing 네임스페이스는 데이터 처리 확장 프로그램 인터페이스를 구현하는 데 필요하며 인터페이스를 Microsoft.ReportingServices.Interfaces 구현 IExtension 하려면 네임스페이스가 필요합니다. 예를 들어 C#으로 작성된 Reporting Services 데이터 처리 확장을 구현하는 코드가 포함된 모든 파일이 확장 .cs 있는 단일 디렉터리에 있는 경우 해당 디렉터리에서 다음 명령을 실행하여 CompanyName.ExtensionName.dll저장된 파일을 컴파일합니다.
csc /t:library /out:CompanyName.ExtensionName.dll *.cs /r:System.dll /r:Microsoft.ReportingServices.Interfaces.dll
다음 코드 예제에서는 확장 .vb 있는 Microsoft Visual Basic 파일에 사용할 명령을 보여 있습니다.
vbc /t:library /out:CompanyName.ExtensionName.dll *.vb /r:System.dll /r:Microsoft.ReportingServices.Interfaces.dll
비고
Visual Studio를 사용하여 데이터 처리 확장 프로그램을 디자인, 개발 및 빌드할 수도 있습니다. Visual Studio에서 어셈블리를 개발하는 방법에 대한 자세한 내용은 Visual Studio 설명서를 참조하세요.
또한 참조하십시오
Reporting Services 확장
데이터 처리 확장 프로그램 구현
Reporting Services 확장 라이브러리