ReportViewer.ExportDialog Method (RenderingExtension, String, String)
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
public DialogResult ExportDialog(
RenderingExtension extension,
string deviceInfo,
string fileName
)
public:
DialogResult ExportDialog(
RenderingExtension^ extension,
String^ deviceInfo,
String^ fileName
)
member ExportDialog :
extension:RenderingExtension *
deviceInfo:string *
fileName:string -> DialogResult
Public Function ExportDialog (
extension As RenderingExtension,
deviceInfo As String,
fileName As String
) As DialogResult
Parameters
extension
Type: Microsoft.Reporting.WinForms.RenderingExtensionThe 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
Type: System.StringAn 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 fe718939-7efe-4c7f-87cb-5f5b09caeff4 Device Information Settings in SQL Server Books Online.
fileName
Type: System.StringThe name of the exported file. The user is prompted for a file name if this parameter is null.
Return Value
Type: System.Windows.Forms.DialogResult
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
ExportDialog Overload
ReportViewer Class
Microsoft.Reporting.WinForms Namespace
Return to top