Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database login for subreport !!
Message
General information
Forum:
ASP.NET
Category:
Reporting
Miscellaneous
Thread ID:
00905948
Message ID:
00905998
Views:
12
This message has been marked as the solution to the initial question of the thread.
Follow-up...

Again, at runtime, I'm pretty sure you need to set the data source for all subreports, even if it won't have any data. I'm sure you know how to do this, but I've included the following code anyway...

RPT_MainReport orpt = new RPT_MainReport();
orpt.Database.Tables[0].SetDataSource(DtTable1);
orpt.Database.Tables[1].SetDataSource(DtTable2);
etc, etc.

ReportDocument subreport = new ReportDocument();
subreport = orpt.OpenSubreport("subreport name");
subreport.Database.Tables[0].SetDataSource(DtSubTable1);

Kevin
Previous
Reply
Map
View

Click here to load this message in the networking platform