Microsoft.Reporting.WebFormsClient.ReportViewer.invokePrintDialog Method

Launches the Print dialog box. This method is only supported in Internet Explorer.

$find(viewerId).invokePrintDialog();

Remarks

If the ActiveX print control is not yet installed on the client computer, invoking this method causes the ActiveX print control to be downloaded and installed on the client computer. This is functionally equivalent to clicking the Print button in the default toolbar. For more information, see Printing Reports from ReportViewer.

Invoking this method in an unsupported browser has no effect. For information on browser support, see Browser Support for ReportViewer Web Server Controls.

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