Condividi tramite


Utilizzo dell'interfaccia IDeliveryReportServerInformation per un'estensione per il recapito

L'interfaccia IDeliveryReportServerInformation espone diverse proprietà che è possibile utilizzare per recuperare informazioni su un server di report. È possibile utilizzare queste informazioni per recapitare notifiche e report. Quando si implementa la classe di estensioni per il recapito, si implementa la proprietà ReportServerInformation, come richiesto dall'interfaccia IDeliveryExtension. La proprietà ReportServerInformation restituisce un oggetto che implementa l'interfaccia IDeliveryReportServerInformation. Da questo oggetto è possibile ottenere un elenco di estensioni per il rendering attualmente supportate dal server di report.

È possibile utilizzare il ciclo for seguente per archiviare un elenco di estensioni per il rendering attualmente disponibili nel server di report in un oggetto 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);
   }
}

Per ulteriori informazioni sull'interfaccia IDeliveryReportServerInformation, vedere Utilizzo dell'interfaccia IDeliveryReportServerInformation per un'estensione per il recapito.

Vedere anche

Riferimento

Microsoft.ReportingServices.Interfaces

Libreria di estensioni di Reporting Services

Altre risorse

Implementazione di un'estensione per il recapito