By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,877 Members | 1,064 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,877 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.Co mponentModel.DesignerSerializationVisibility.Hidde n)> _
Public Overloads ReadOnly Property Section4 As
CrystalDecisions.CrystalReports.Engine.Section
Get
Return Me.ReportDefinition.Sections(56)
End Get
End Property

<Browsable(false), _

DesignerSerializationVisibilityAttribute(System.Co mponentModel.DesignerSerializationVisibility.Hidde n)> _
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.
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
nevermind, found it elsewhere

"Troy" wrote:
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.Co mponentModel.DesignerSerializationVisibility.Hidde n)> _
Public Overloads ReadOnly Property Section4 As
CrystalDecisions.CrystalReports.Engine.Section
Get
Return Me.ReportDefinition.Sections(56)
End Get
End Property

<Browsable(false), _

DesignerSerializationVisibilityAttribute(System.Co mponentModel.DesignerSerializationVisibility.Hidde n)> _
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.

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.