views:

970

answers:

3

Hello,

I have a number of reports that need to be both run separately and also as a group.

I've created these reports and was hoping I could just create a form where I could just append report1, report2, report3... together without creating a different report and making all of those reports subreports.

Is this possible?

Thanks,


Edit: I'm displaying it in the .NET WinForms control, but it will also be exported to PDF and perhaps DOC, XLS etc...

+3  A: 

Create a third report that has the first N reports setup as sub-reports in the header one after the other. Why is this not a good option for you?

Possibly you could post-append. What is the output format?

Kieveli
The reason subreports aren't optimal for me are because it seems easier to append in code (if possible) I'm new(ish) to CR and I find the GUI formating controls clunky. This approach isn't unacceptable, just less preferred.
Nathan Koop
Preference is subjective. I prefer to do less work to get it working ;) I would create the UberReport, and show/hide sections like Gerrie says if you need to.
Kieveli
That being said... It is possible to create a report from scratch in code... But not easier.
Kieveli
Thanks, I thought I could do some new CrystalReport.AppendReport(report1) or something like that.
Nathan Koop
+1  A: 

use the option Kieveli suggested and show and hide the subreports depending on the user's choice if you want a more dynamic solution.

Gerrie Schenck
A: 

Definitively the best to do it is using subreports, less coding, less trouble for you. Or instead, don´t use crystal reports, it's too messy

anyulled