I use the BeforePrintEvent of a GroupFooterBand to calculate sums (group sums and also total sums). Unfortunately this event always occurs twice! The same event in the GroupHeaderBand works right and occurs only once. Same behaviour with the AfterPrintEvent.
Here is a sample report (using NWIND.MDB) to reproduce this behaviour:
Code: Select all
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Programme\Stimulsoft\StimulReport.Net\Bin\NWIND.MDB;Persist Security Info=False
Verbindung
Customers
CustomerID,System.String
CompanyName,System.String
ContactName,System.String
ContactTitle,System.String
Address,System.String
City,System.String
Region,System.String
PostalCode,System.String
Country,System.String
Phone,System.String
Fax,System.String
30
Verbindung
Customers
SELECT TOP 5 * FROM Customers
None;Black;2;Solid;False;4;Black
Transparent
MessageBox.Show("Header");
Transparent
0,0.4,19,0.8
Transparent
0,0,6.8,0.6
Arial,14,Bold
0,0,0,0
Text3
{Customers.City}
Black
{Customers.City}
Top
GroupHeaderBand1
Transparent
0,2,19,0.8
Transparent
0,0,8.6,0.8
Arial,8
0,0,0,0
Text1
{Customers.CompanyName}
Black
Transparent
9.6,0,7.8,0.8
Arial,8
0,0,0,0
Text2
{Customers.City}
Black
Customers
Top
DataBand1
MessageBox.Show("Footer");
Transparent
0,3.6,19,0.8
Top
GroupFooterBand1
b7085fe25c134cb39963cdea3ad2c0e2
1,1,1,1
Page1
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
1/27/2007 1:50:33 PM
1/27/2007 1:38:02 PM
c2d60e6e74aa4814b4a93efd90b9bd22
Report
Centimeters
2007.1
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.ReportControls;
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
Thank you very much for your support,
Markus