Поделиться через


ReportViewer.ExportDialog Method (RenderingExtension, String)

Opens in the export dialog box for a specific rendering extension.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

Syntax

'Declaration
Public Function ExportDialog ( _
    extension As RenderingExtension, _
    deviceInfo As String _
) As DialogResult
'Usage
Dim instance As ReportViewer
Dim extension As RenderingExtension
Dim deviceInfo As String
Dim returnValue As DialogResult

returnValue = instance.ExportDialog(extension, deviceInfo)
public DialogResult ExportDialog (
    RenderingExtension extension,
    string deviceInfo
)
public:
DialogResult ExportDialog (
    RenderingExtension^ extension, 
    String^ deviceInfo
)
public DialogResult ExportDialog (
    RenderingExtension extension, 
    String deviceInfo
)
public function ExportDialog (
    extension : RenderingExtension, 
    deviceInfo : String
) : DialogResult

Parameters

  • extension
    The rendering extension to use for the export.

    Typically, youTo access the list of available rendering extensions, use using the ListRenderingExtensions method in ServerReport or LocalReport, depending on the processing mode (see ProcessingMode).

  • deviceInfo
    An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online.

Return Value

Cancel if the user clicked the Cancel button; Abort if the export operation failed; otherwise, OK.

Remarks

Invoking this method is similar to a user selecting an export format from the Export drop-down list on the toolbar.

See Also

Reference

ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace