Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
schamp
Starting Member
13 Posts |
Posted - 2010-11-22 : 03:26:30
|
Below is the code I am using:protected void ReportViewer1_Drillthrough(object sender, DrillthroughEventArgs e) { LocalReport localReport = (LocalReport)e.Report; localReport.DataSources.Add(new ReportDataSource("InfosourceReportsDS")); }Below is the aspx for reportviewer:<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="800px" ProcessingMode="Remote" Width="1075px" ShowPrintButton="false" ExportContentDisposition="AlwaysInline" ondrillthrough="ReportViewer1_Drillthrough"> <ServerReport ReportServerUrl="" /> <LocalReport EnableHyperlinks="True"> </LocalReport></rsweb:ReportViewer>I am getting the below exception in the Drillthrough event at the below statement:LocalReport localReport = (LocalReport)e.Report;Exception:cast Microsoft.Reporting.WebForms.ServerReport' to type 'Microsoft.Reporting.WebForms.LocalReport' |
|
|
|
|