Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to walk through the collection of subreports in Crystal Reports 2008?

Posted on 2010-01-05
Medium Priority
Last Modified: 2013-12-17
How to walk through the collection of subreports in Crystal Reports 2008?
Question by:Sovereign
  • 3

Author Comment

ID: 26182747
Hi, I have the report with lots of sub-reports within.  
How can I walk through the collection of sub-reports in main report? I need this to change the data source for each sub report.  

Author Comment

ID: 26182751
Sorry for comment. This site fails with FF

Accepted Solution

Sovereign earned 0 total points
ID: 26189844
Thanks, I have found the solution

ReportDocument reportDocument = new ReportDocument();
foreach (ReportDocument subreportDocument in reportDocument.Subreports) {   
  // do something here

Open in new window


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question