Original

You are currently reviewing an older revision of this page.
Go to current version

Issue:
Internet Explorer modal dialogs require IFrames to access the WebBrowser COM interface. SQL Server 2008 R2 changed from using IFrames to AJAX update panels. If you launch SQL Server 2008 R2 report using the IE modal dialog, and try to print the report using the print option on the report, then the following error message appears:

An error occurred trying to get the current window

Workaround:

To use a modal dialog with SQL Server 2008 R2 report, have the modal dialog contain an IFrame containing the report.