【发布时间】:2014-01-13 05:47:46
【问题描述】:
我有一份带有子报告的报告。 我可以将子报表总计打印到主报表页脚。 但我需要将子报表总计打印到主报表标题。
子报表页脚公式
//@SubCrSum
//Stores the grand total of the {dtPanding.Credit} field
//in a number variable called 'crSubTotal'
WhilePrintingRecords;
Shared NUMBERVar crSubTotal := Sum ({dtPanding.Credit})
主要报告公式
//@showSubBalance
//Returns the value that was stored in the shared currency variable called
//crSubTotal in the subreport
WhilePrintingRecords;
Shared NUMBERVar crSubTotal;
crSubTotal
当我将主报表公式字段放入主报表的页脚时,它会正确打印子报表页脚。 但是当我将它放入标题部分时,它会打印 0。 谁能帮我将子报表总计打印到报表标题中。
【问题讨论】:
标签: c# asp.net crystal-reports subreport