Working on a report in release 2010.1 and when I add an aggregated field in to a group header band the designer shows an error
"error CS0117: 'Reports.Report' does not contain a definition for 'Category_HasAttribute_Name'"
It appears that the code generator is trying to assign a render event delegate to a class member variable that hasn't been declared.
Any help you can provide would be appreciated.
Cheers,
Dan
The report is as below:
Code: Select all
Category
Name,System.String
HasAttribute_Name,System.String
Category
Category.Category
EngineV2
None;Black;2;Solid;False;4;Black
Transparent
Transparent
0,0.4,19,0.8
Transparent
True
True
0,0,19,0.8
Calibri,8
00000000-0000-0000-0000-000000000000
Right
0,0,0,0
PageHeaderTextField
Thursday, 19 August 2010
[0:0:102]
PageHeaderBand3
Transparent
0,2,19,0.8
Transparent
True
True
0,0,19,0.8
Cambria,20
00000000-0000-0000-0000-000000000000
Center
0,0,0,0
ReportHeaderTextField
2
[0:0:102]
PageHeaderBand4
OnlyFirstPage
Transparent
0,26.9,19,0.8
Transparent
True
True
0,0,19,0.8
Calibri,9
00000000-0000-0000-0000-000000000000
0,0,0,0
ReportFooterTextField
Template : Category
[0:0:102]
PageFooterBand16
OnlyLastPage
Transparent
0,25.3,19,0.8
Transparent
True
True
0,0,19,0.8
Calibri,8
00000000-0000-0000-0000-000000000000
Right
0,0,0,0
PageFooterTextField
{PageNofM}
[0:0:102]
PageFooterBand17
None;Transparent;0;None;False;4;Black
[143:182:234]
0,3.6,19,0.8
Transparent
True
0,0.2,9.5,0.6
Calibri,9,Bold
True
0,0,0,0
5
Text6
Name
[0:0:102]
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Transparent
True
9.5,0.2,9.5,0.6
Calibri,9,Bold
True
0,0,0,0
5
Text13
Has Attribute Name
[0:0:102]
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
HeaderBand5
True
{Category.Name}
None;Transparent;0;None;False;4;Black
Transparent
0,5.2,19,1.6
Transparent
True
0,0.2,19,0.6
Calibri,16,Bold
True
0,0,0,0
5
Text7
{Category.Name}
[0:0:102]
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Transparent
True
9.5,0.2,9.5,0.6
Calibri,9,Bold
True
0,0,0,0
5
Text8
Count(Has Attribute Name)
[0:0:102]
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Transparent
9.6,1,9.4,0.6
Arial,10,Bold
0,0,0,0
Text1
{Count(Category.HasAttribute_Name)}
Black
{Category.Name}
GroupHeaderBand10
Transparent
0,7.6,19,0.8
White
True
0,0,9.5,0.8
Arial,8
True
0,0,0,0
Text12
Black
Bottom;[143:182:234];1;Solid;False;4;Black
Transparent
True
9.5,0,9.5,0.8
Calibri,9
True
0,0,0,0
10
Text14
{Category.HasAttributeName}
[0:0:0]
HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
Category
DataBand11
None;Transparent;0;None;False;4;Black
Transparent
0,9.2,19,0.8
GroupFooterBand15
3a5d644b65c845ab9462afa535df2886
1,1,1,1
Page2
29.7
21
Arial,100
[50:0:0:0]
System.Dll
System.Drawing.Dll
System.Windows.Forms.Dll
System.Data.Dll
System.Xml.Dll
Stimulsoft.Controls.Dll
Stimulsoft.Base.Dll
Stimulsoft.Report.Dll
Report
8/19/2010 11:58:23 AM
8/19/2010 11:33:11 AM
C:\Users\dcleyne\Desktop\BadReport.mrt
f7fe0d6a16ce41fc9887c5755ed4f125
Report
Centimeters
2010.1.700
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
namespace Reports
{
public class Report : Stimulsoft.Report.StiReport
{
public Report()
{
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify#endregion StiReport Designer generated code - do not modify
}
}
CSharp