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.
Il ciclo seguente for
può essere usato per archiviare un elenco di estensioni di 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 altre informazioni sull'interfaccia IDeliveryReportServerInformation, vedere Uso dell'interfaccia IDeliveryReportServerInformation per un'estensione per il recapito.
Vedere anche
Microsoft.ReportingServices.Interfaces
Implementazione di un'estensione per il recapito
Libreria di estensioni di Reporting Services