467,075 Members | 997 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

Crystal Reports SubReport having a SubReport?

C
Hi,

I have a main Report which has a SubReport.

This SubReport also has a SubReport.

I set the data of my main Report and Subreport through code
DataSet dsMainReport = daLayer.GetMainReportData();
DataSet dsSubReport = daLayer.GetSubReportData();
string fileOutputPath =
Server.MapPath("../Reports/MainReport.rpt");

// Load the report
crReportDocument.Load(fileOutputPath);

//declare the tables
crTables = crReportDocument.Database.Tables;

//assign tables

crReportDocument.Database.Tables[0].SetDataSource(dsMainReport.Tables[0]);

crReportDocument.Subreports[0].Database.Tables[0].SetDataSource(dsSubReport.Tables[0]);

For the SubReport's SubReport I have set it to use a field on the SubReport
of the Main Report. Yet this SubReport does not get displated.

I only see the Main Report and it's SubReport.

Anyone know why? Can I have a Subreport which in turn has a SubReport?

Thanks.
Aug 23 '06 #1
  • viewed: 4013
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tim Jones | last post: by
2 posts views Thread by Tim Burda | last post: by
3 posts views Thread by Stig | last post: by
reply views Thread by Timmy Jones | last post: by
3 posts views Thread by Brad | last post: by
1 post views Thread by Hardy Wang | last post: by
2 posts views Thread by Franck | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.