Microsoft.Reporting.WebFormsClient.ReportViewer.exportReport Method

Exports the report in the specified format.

$find(viewerId).exportReport("Excel");

Parameters

  • Format
    A string that represents the format in which to export the report. This argument maps to a rendering extension.

    In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.

    You can access the list of available rendering extensions using the server-side method ListRenderingExtensions in ServerReport or LocalReport, depending on the processing mode (see ProcessingMode).

Remarks

When the Web page is performing a postback or the client-side control is loading content, accessing the methods or properties will cause an exception with the message: "The report or page is being updated. Please wait for the current action to complete." Use the isLoading property to check whether the report or page is being updated and whether you can access the methods and properties.

When the Web page or the client-side control is not performing a postback, this method requires that a report is loaded. If no report is loaded, invoking this method will cause an exception with the message: "The operation cannot be performed because there is no report loaded." Use the reportAreaContentType property to check whether the report area contains a report page before you use this method.

See Also

Reference

Microsoft.Reporting.WebFormsClient.ReportViewer Class