Share via


ServerReport.ListRenderingExtensions Method

Returns all available rendering extensions for the server report.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
Public Overrides Function ListRenderingExtensions As RenderingExtension()
'Usage
Dim instance As ServerReport
Dim returnValue As RenderingExtension()

returnValue = instance.ListRenderingExtensions
public override RenderingExtension[] ListRenderingExtensions ()
public:
virtual array<RenderingExtension^>^ ListRenderingExtensions () override
public RenderingExtension[] ListRenderingExtensions ()
public override function ListRenderingExtensions () : RenderingExtension[]

Return Value

An array of RenderingExtension objects.

Remarks

This method can be used to populate drop-down lists to allow users to select a rendering extension for export.

Example

Private Sub Button2_Click(ByVal sender As System.Object, _
     ByVal e As System.EventArgs) Handles Button2.Click
   Dim extensions As RenderingExtension() = _
   ReportViewer1.ServerReport.ListRenderingExtensions()

   For Each extension As RenderingExtension In extensions
   Debug.WriteLine("Extension: " + extension.Name + _
     " Visible? " + extension.Visible.ToString)
   Next

End Sub

See Also

Reference

ServerReport Class
ServerReport Members
Microsoft.Reporting.WebForms Namespace