Displaying SubReport Data into a Microsoft Report Viewer Control with ASP.NET VB
I've got the main report displaying just fine. Can't get the subreport to display data. Parameters are setup and li开发者_如何学Pythonnked 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.
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
精彩评论