I'm new to crystal reports. I have a problem of generating a report, I have multiple parameters in my parameter field, If i select one parameter i will get data perfect but If i select two parameters then how can i generate two reports separately.
Ex: In my parameter field i will have a dropdown of parameters.I will select two parameters to get the report as below
Select ID:1,2
Report 1: ID=1
- ABC
- DEF
- ABCD
Report 2: ID=2
- 1234
- 7898
- 9848
Like these i need to generate one by one in my report
Sandhiya PriyaPosted Oct 29, 2025, 10:18 AM
You want to split your report dynamically based on multiple selected parameter values — for example, when a user selects multiple IDs (say 1,2,3) in a dropdown parameter, your reporting tool should automatically generate separate sub-reports (or pages) for each selected ID.
Let’s go through the approach depending on your reporting environment:
Option 1: SSRS (SQL Server Reporting Services)
If you’re working in SSRS (Report Builder / Visual Studio), here’s how to do it:
Step-by-Step Solution
Create a Multi-Value Parameter
Go to Report Parameters ? Add a parameter, e.g.
@IDEnable:
“Allow multiple values”
“Provide available values” from your dataset (e.g. list of IDs)
Filter Your Main Dataset
In your dataset query, use an
INfilter:SSRS automatically converts multi-select parameters into comma-separated lists internally.
Group by ID in the Report
Insert a Table or List.
Right-click ? Group Properties ? Group by
=Fields!ID.Value.Inside each group, display your data for that ID.
Page Break Between IDs
In the Group Properties ? Page Breaks, check:
“Between each instance of a group”
This ensures each ID’s data starts on a new page.
Result:
When you select multiple IDs (like 1 and 2), your report automatically generates:
Page 1 ? Report for ID = 1
Page 2 ? Report for ID = 2
Option 2: Crystal Reports (if you’re using that)
In Crystal Reports, the idea is similar:
Create a multi-select parameter for IDs.
In the Record Selection Formula, filter using:
Create a Group by ID.
In Section Expert, enable “New Page After” for the ID group.
Option 3: Generate Reports Programmatically (C# / .NET)
If you’re generating reports using code (like ReportViewer in ASP.NET or Windows Forms):
This loop generates a separate report for each selected parameter.
tip: Dynamic File Export (per ID)
If you want to automatically export each report to a separate file:
Use
IDin file name (e.g.,Report_ID1.pdf,Report_ID2.pdf).SSRS subscription or custom script can automate it.