Aracılığıyla paylaş


Bir veri işleme uzantısı kitaplığı oluşturma

Her SQL Server 2005 Reporting Services (SSRS) oluşturduğunuz veri işleme uzantısı için benzersiz bir ad alanı atanmış ve bir kitaplık veya derleme dosyasına yerleşik gerekir. The exact name of the namespace is not important, but it must be unique and not shared with any other extension.Microsoft uses the namespace Microsoft.ReportingServices.DataProcessing for the data processing extensions that ship with Reporting Services.Kendi benzersiz ad şirketin veri işleme uzantıları oluşturmanız gerekir.

Başlamak için kodunu aşağıdaki örnekte gösterildiği bir Reporting Services veri işleme uzantısı veri işleme arabirimleri ve herhangi bir yardımcı program sınıfları içeren ad alanlarını kullanır.

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
{
   ...

Derleme, bir Reporting Services veri işleme uzantısı, veri işleme uzantısı arabirimleri vardır içerdiğinden Microsoft.ReportingServices.Interfaces.dll, başvuru için derleyici sağlamalısınız. The Microsoft.ReportingServices.DataProcessing namespace is needed to implement the veri işleme uzantısı interfaces, and the Microsoft.ReportingServices.Interfaces namespace is needed to implement the IExtension arabirim. Örneğin, tüm dosyaları uygulamak için bu kodu içeren bir Reporting Services C# dilinde yazılan veri işleme uzantısı olan tek bir dizinde uzantısı .cs, aşağıdaki komut dosyalarını, CompanyName.ExtensionName.dll içinde depolanan dizin verilmiş.

csc /t:library /out:CompanyName.ExtensionName.dll *.cs /r:System.dll /r:Microsoft.ReportingServices.Interfaces.dll

The following code example shows the command that would be used for Microsoft Visual Basic files with the extension .vb.

vbc /t:library /out:CompanyName.ExtensionName.dll *.vb /r:System.dll /r:Microsoft.ReportingServices.Interfaces.dll

Not

Ayrıca tasarım, geliştirme ve uzantısını kullanarak, veri işleme Visual Studio. Derlemelerde geliştirme hakkında daha fazla bilgi için Visual Studio, bkz:, Visual Studio belgeleri.