“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.