Crystal 'Multiple Defs w/ Identical Signatures' in generated code

G

Guest

A developer created a Crystal report in .NET.
I added the .RPT file to one of my .NET projects as an existing file.
It immediatly reported several errors in the generated [reportname].vb file
where it created its class and listed the sections as properties but listed
some of them twice, returning different ReportDefinition.Sections items...

'---------- CRYSTAL GENERATED CODE...
<Browsable(false), _

DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
Public Overloads ReadOnly Property Section4 As
CrystalDecisions.CrystalReports.Engine.Section
Get
Return Me.ReportDefinition.Sections(56)
End Get
End Property

<Browsable(false), _

DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
Public Overloads ReadOnly Property Section4 As
CrystalDecisions.CrystalReports.Engine.Section
Get
Return Me.ReportDefinition.Sections(96)
End Get
End Property

'---------- END OF CODE

The two index values are returning the same sections. Not sure if there are
two Instances of the same section in the collection or if Crystal has two
references in its collection to a single private instance.

Anyone seen this before? Any ideas of ridding myself of the errors? The
code gets regenerated so changing it doesn't really help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top