shahjagat
asked on
Dynamically 'Group By' in crystal Reports ( ASP.NET/VS2008)
I have created a group on the crystal report. Code works with one group on the report.
objRptDoc.DataDefinition.G roups.Item (0).Condit ionField = objRptDoc.Database.Tables( 0).Fields( rblGroupBy .SelectedV alue)
Now I added another group on the report and need to dynamically assign the field to the second group. Below code doesnt work with the 2nd group. It just groups by the fields that I assigned during the design time.
objRptDoc.DataDefinition.G roups.Item (1).Condit ionField = objRptDoc.Database.Tables( 0).Fields( rblSubGrou pBy.Select edValue)
I'm I missing something.
Appreciate your help!!
objRptDoc.DataDefinition.G
Now I added another group on the report and need to dynamically assign the field to the second group. Below code doesnt work with the 2nd group. It just groups by the fields that I assigned during the design time.
objRptDoc.DataDefinition.G
I'm I missing something.
Appreciate your help!!
ASKER
I'm not sure when u say 'New Report'.
I just created a report with with 2 groups assigned to two fields at design time.
I just created a report with with 2 groups assigned to two fields at design time.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You indicated this works if there is one group on the report and then yu added a second group.
If you have a standalone report and saved it, the code may still be using the version with 1 parameter rather than the updated version.If you designed this in the VS IDE then you most likely are using the correct version of the report.
mlmcc
If you have a standalone report and saved it, the code may still be using the version with 1 parameter rather than the updated version.If you designed this in the VS IDE then you most likely are using the correct version of the report.
mlmcc
mlmcc