PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?VHJveQ==?=
Guest
Posts: n/a
 
      18th Nov 2004
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.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VHJveQ==?=
Guest
Posts: n/a
 
      19th Nov 2004
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.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.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding identical text to multiple user's signatures simultaneously Veronica Microsoft Outlook Discussion 1 8th Sep 2008 07:15 PM
Partial Classes - Identical Signatures daokfella Microsoft VB .NET 1 23rd May 2007 04:48 PM
Need code to import multiple single worksheets with identical fiel =?Utf-8?B?SW4gbmVlZCBvZiBjb2Rl?= Microsoft Access External Data 1 25th Jul 2005 09:37 PM
System.Web.Profile.DefaultProfile' has multiple definitions with identical signatures Kivak Wolf Microsoft ASP .NET 1 29th Jun 2005 04:23 PM
Inexplicable difference in row hiding speed - identical code, identical machines! Matt Larkin Microsoft Excel Programming 5 1st Nov 2004 10:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:37 AM.