Veri işleme uzantısı kitaplığı oluşturma
Her Reporting Servicesiçin benzersiz bir ad atanır ve kitaplığı veya derleme dosyası inşa oluşturduğunuz veri işleme uzantısı. Ad alanının tam adı önemli değil, ama o değil başka bir uzantısı olan paylaşılan ve benzersiz olmalıdır. Microsoftbir ad alanı kullanır Microsoft.ReportingServices.DataProcessing, birlikte veri işleme uzantıları Reporting Services. Şirketinizin veri işleme uzantıları kendi benzersiz ad oluşturmalısınız.
Başlamak için kodu aşağıdaki örnekte gösterilmektedir bir Reporting Servicesveri işleme arabirimleri ve herhangi bir yardımcı program sınıfları içeren ad alanları kullanan veri işleme uzantısı.
Imports System
Imports Microsoft.ReportingServices.DataProcessing
Imports Microsoft.ReportingServices.Interfaces
Namespace CompanyName.ExtensionName
...
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
{
...
using System;
using Microsoft.ReportingServices.DataProcessing;
using Microsoft.ReportingServices.Interfaces;
namespace CompanyName.ExtensionName
{
...
Derlerken bir Reporting Servicesçünkü veri işleme uzantısı arabirimleri orada bulunan veri işleme uzantısı, sizin için derleyici Microsoft.ReportingServices.Interfaces.dll, başvuru sağlamalısınız. Microsoft.ReportingServices.DataProcessingAd veri işleme uzantısı arabirimlerini tabi ve Microsoft.ReportingServices.Interfacesad uygulamaya tabi IExtensionarabirimi. Örneğin, eğer tüm uygulamak için kodu içeren dosyaları bir Reporting Servicesveri işleme uzantısı C# dilinde yazılmış tek bir dizinde uzantısı .cs, aşağıdaki komut dosyalarını, CompanyName.ExtensionName.dll içinde saklanan bu dizinden verilen.
csc /t:library /out:CompanyName.ExtensionName.dll *.cs /r:System.dll /r:Microsoft.ReportingServices.Interfaces.dll
csc /t:library /out:CompanyName.ExtensionName.dll *.cs /r:System.dll /r:Microsoft.ReportingServices.Interfaces.dll
Aşağıdaki kod örneği için kullanılan komutu gösterir Microsoft Visual Basicuzantılı dosyaları. vb.
vbc /t:library /out:CompanyName.ExtensionName.dll *.vb /r:System.dll /r:Microsoft.ReportingServices.Interfaces.dll
vbc /t:library /out:CompanyName.ExtensionName.dll *.vb /r:System.dll /r:Microsoft.ReportingServices.Interfaces.dll
[!NOT]
Ayrıca tasarımı, geliştirilmesi ve veri işleme uzantısı kullanılarak inşa Visual Studio. Montajları geliştirme hakkında daha fazla bilgi için Visual Studio, bakın sizin Visual Studiobelgeleri.
Ayrıca bkz.
Başvuru
Raporlama Hizmetleri uzantısı kitaplığı