我有一个活动报告,其中包含名为存款和取款的两列。我想在活动报告的最后一页获得两列的总和。我在 ReportStart 事件中做了一些代码
var fldDepositTotal = ar.Sections["gfDetail"].Controls["fldDepositTotal"] as DataDynamics.ActiveReports.TextBox;
var fldWithdrawalTotal = ar.Sections["gfDetail"].Controls["fldWithdrawalTotal"] as DataDynamics.ActiveReports.TextBox;
fldDepositTotal.DataField = "AmountD"; // Your datafield value
fldDepositTotal.SummaryFunc = SummaryFunc.Sum;
fldDepositTotal.SummaryGroup = "ghDetail";
fldDepositTotal.SummaryRunning = SummaryRunning.Group;
fldDepositTotal.SummaryType = SummaryType.GrandTotal;
fldWithdrawalTotal.DataField = "AmountW"; // Your datafield value
fldWithdrawalTotal.SummaryFunc = SummaryFunc.Sum;
fldWithdrawalTotal.SummaryGroup = "ghDetail";
fldWithdrawalTotal.SummaryRunning = SummaryRunning.Group;
fldWithdrawalTotal.SummaryType = SummaryType.GrandTotal;
我也已经在报告页脚中做到了,但仍然没有得到存款和取款金额的总和。我怎样才能得到列的总和?