Udostępnij za pośrednictwem


Przy użyciu interfejsu IDeliveryReportServerInformation dla rozszerzenia dostawy

The IDeliveryReportServerInformation interfejs exposes several properties that you can use to retrieve information about a serwer raportów. Ta informacja służy do dostarczania powiadomień i raportów.Podczas implementowania dostawy rozszerzenie klasy, w przypadku zastosowania ReportServerInformation() Właściwość zgodnie z wymaganiami IDeliveryExtension interfejs. The ReportServerInformation() właściwość returns an object that implements the IDeliveryReportServerInformation interfejs. Z tego obiektu można uzyskać listę rozszerzeń renderowania są obecnie obsługiwane przez serwer raportów.

Poniżej for Pętla może zostać wykorzystana do przechowywania listy renderowania rozszerzenia obecnie dostępne serwer raportów w ArrayList obiektu.

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);
   }
}

Aby uzyskać więcej informacji na temat IDeliveryReportServerInformation interfejs, zobacz Przy użyciu interfejsu IDeliveryReportServerInformation dla rozszerzenia dostawy.

See Also

Reference

Microsoft.ReportingServices.Interfaces

Other Resources