Jonathan Escobedo
Jonathan Escobedo

Reputation: 4053

Is it possible to include a subreport or 2 reports in the same Crystal Report?

I'm using Crystal Reports in vs2008, so I'm using datasets with procedures to get the data from the db, my escenario is the following:

In the same Crystal Report, I have to show two reports, basically using the sames datasets, and the same database, but they are different queries (have grouping and summing instead)

Is this possible? And if it is how can I solute this, using database expert? or crosstab? What options of crystal reports supports these operations?

Upvotes: 0

Views: 4151

Answers (2)

Spacehamster
Spacehamster

Reputation: 195

Based on my own experiences, I have to agree with Greg - a subreport is probably the easiest-to-maintain solution to your problem. In the case of VS2008, the steps to follow are:

  1. Go to the Crystal Reports -> Insert -> Subreport menu option.
  2. Click where you want to place the subreport on the main report.
  3. The 'Insert Subreport' form will be displayed. Either choose an existing report, or create a new one using the Report Wizard. In the Report Wizard, you can also choose from the existing datasets un your project.

To link your main report to the subreport right-click on the Subreport, and choose 'Change Subreport Links'.

Hope that helps.

Upvotes: 1

GregD
GregD

Reputation: 7000

You should be able to insert a "sub report" in Crystal on your primary report. You can pass parameters from the main report to the sub report and utilize a whole different command in the sub report. I'm not sure the exact keyboard sequence to insert a sub report in VS2008, but in CR 2008, it's as simple as using the file menu INSERT > SUB REPORT.

Upvotes: 2

Related Questions