Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Opens in the Exporting dialog box for a specific rendering extension and specifies device information and saves the exported report to a file with the specified file name.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)
Syntax
'Declaration
Public Function ExportDialog ( _
extension As RenderingExtension, _
deviceInfo As String, _
fileName As String _
) As DialogResult
'Usage
Dim instance As ReportViewer
Dim extension As RenderingExtension
Dim deviceInfo As String
Dim fileName As String
Dim returnValue As DialogResult
returnValue = instance.ExportDialog(extension, deviceInfo, fileName)
public DialogResult ExportDialog (
RenderingExtension extension,
string deviceInfo,
string fileName
)
public:
DialogResult ExportDialog (
RenderingExtension^ extension,
String^ deviceInfo,
String^ fileName
)
public DialogResult ExportDialog (
RenderingExtension extension,
String deviceInfo,
String fileName
)
public function ExportDialog (
extension : RenderingExtension,
deviceInfo : String,
fileName : String
) : DialogResult
Parameters
extension
The rendering extension to use for the export.To access the list of available rendering extensions, use 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.
- fileName
The name of the exported file. The user is prompted for a file name if this parameter is null.
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, specifying a file name in the Save As dialog box, and then clicking OK.
See Also
Reference
ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace