SSRS Drillthrough event
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'
November 22nd, 2010 3:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics