使用傳遞延伸模組的 IDeliveryReportServerInformation 介面
IDeliveryReportServerInformation 介面會公開您可用以擷取有關報表伺服器資訊的一些屬性。 您可以使用此資訊來傳遞通知和報表。 當實作傳遞延伸模組類別時,會實作 ReportServerInformation 介面所需的 IDeliveryExtension 屬性。 ReportServerInformation 屬性會傳回實作 IDeliveryReportServerInformation 介面的物件。 從這個物件,您可以取得報表伺服器目前支援的轉譯延伸模組清單。
下列 for
迴圈可用來儲存 ArrayList 物件中報表伺服器目前可用的轉譯延伸模組清單。
Dim renderFormats As New ArrayList()
Dim e As Microsoft.ReportingServices.Interfaces.Extension
For Each e In ReportServerInformation.RenderingExtension
If e.Visible Then
renderFormats.Add(e.Name)
End If
Next e
ArrayList renderFormats = new ArrayList();
foreach (Microsoft.ReportingServices.Interfaces.Extension e in ReportServerInformation.RenderingExtension)
{
if (e.Visible)
{
renderFormats.Add(e.Name);
}
}
如需 IDeliveryReportServerInformation 介面的詳細資訊,請參閱使用傳遞延伸模組的 IDeliveryReportServerInformation 介面。
另請參閱
Microsoft.ReportingServices.Interfaces
實作傳遞延伸模組
Reporting Services 延伸模組程式庫