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.
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.