views:

547

answers:

1

I've got the main report displaying just fine. Can't get the subreport to display data. Parameters are setup and linked appropriately, but still nothing. Am I missing something obvious? Is there a bug I'm not aware of? Anyone else fighting with this? I'm using Visual Web Developer Express 2008 on a SQL Express 2005 database.

A: 

Have you handled the SubreportProcessing event?

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    AddHandler ReportViewer1.LocalReport.SubreportProcessing, AddressOf Me.SubreportProcessingEventHandler
End Sub

Public Sub SubreportProcessingEventHandler(ByVal sender As Object, ByVal e As Microsoft.Reporting.WebForms.SubreportProcessingEventArgs)
    'TODO
End Sub

Here's a link to the MSDN page on this: click here

rip