0
I’m using Crystal Reports to generate a report. This has a Report sub, where I need to add a color function to a section.
I did it this way:
In the sub Report.
Right click on the section > Section Expert > Color Tab
if RecordNumber = 1 then crBlue else
if RecordNumber = 2 then crRed else
crNoColor
Well, the goal is to present the first item in blue, the second in red and the following without color.
If this function was in any section in the Main Report it would work perfectly (already tested), but in the sub report it does not work.
Only the first item receives the color (blue), but the second is without color.
The sub report has been inserted in the footer section of the report leading.
I believe that RecordNumber
has received 1
on account of the section where the sub-report is in the Main Report.
Details of Crystal Reports:
DLL: Crystaldecisions.CrystalReports.Engine
Description: Crystal Reports for . NET Framework
Runtime Version: v2.0.50727
Version: 13.0.2000.0