cancel
Showing results for 
Search instead for 
Did you mean: 

Details Section Name consistency

jimprucha
Explorer
0 Kudos

Hi All,

I'm interested in getting access to the specific Details section in .Net code. I am using Crystal Reports 10 and have 26 detail sections in the designed report. As I am in .Net code iterating over the details sections they aren't named like they are through the designer. The designer uses Da, Db, Dc, etc. and the .Net object has the name as DetailSection1, DetailSection2, etc.

Is there a way to know which detail section I am in like the designer uses.

As a quick hack I have given the CssClassName a string that I can reference in the code but I'd love not to use the hack.

Any suggestions?

Thanks,

Jim

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Not really. I never noticed this inconsistency...

I think you're best to stay with your work-around. Another work-around that was suggested here; place a text field into each section with the name of the section as it is in the designer. Hide the field, then iterate through he sections looking for the text field and checking it's contents. Yuck...

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

jimprucha
Explorer
0 Kudos

Thanks Ludek.

Answers (0)