471,050 Members | 1,100 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,050 software developers and data experts.

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
0 4113

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 Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.