Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple Reports using filters
Message
From
14/09/2006 15:42:30
 
 
To
14/09/2006 14:15:50
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
VB 8.0
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01153132
Message ID:
01153826
Views:
20

' ReportClassDetail is a variable linking to the Crystal Report file
' view_Detailed is the Crystal Report viewer
ReportClassDetail.SetDataSource(dtMyFilteredTable)
Me.view_Detailed.ReportSource = ReportClassDetail

Unfortunately, none of the subreports displayed any data. Only the main report show any records. Thanks anyways for the prompt reply.


Hi, Erik

You just need to do one more thing...set the datasource for the subreport.

I have a generic routine that goes like this (it just examines any subreport objects in the main report object):
foreach(ReportDocument oSubReport in oMainReport.Subreports) 
    // and then set the datasources for oSubReport in the same way
Give that a try...
Kevin
Previous
Reply
Map
View

Click here to load this message in the networking platform