I am using Crystal Reports with Asp.Net and C#. I am facing a problem sharing field values to a subreports stored procedure parameters.
My report structure :
1. Main report (M) with stored procedure P(1)
2. Subreport (S) with another stored procedure P(2)
P(1) accepts a parameter which is a comma separated string of values. This comma separated string goes to the IN operator of the procedure query. So I get a list of records.
comma-separated param = "v1,v2,v3....vn".
Now I have to use these comma separated values into subreport (S) procedure P(2) individually.
So that my subreport is generated a single time for a comma separated value.
output to be achieved is:
Main report M1
Subreport S1
Main report M2
Subreport S2
.
.
.
and likewise.
Kindly help me pass the values v1...vn to sub report stored procedure.