0
使用Crystal Reports的GridView对象并试图找到一种方法来比较一行值中的GridValues,并且时间非常困难。Crystal Reports:交叉表计算嵌入式汇总比较多个单元格值
这里是我用在嵌入式汇总(直接设下的红色框)使用的代码...
local numbervar c;
local numbervar r;
local Numbervar cs:=GridValueAt(CurrentRowIndex,CurrentColumnIndex,CurrentSummaryIndex-1);
local numbervar MOST;
if GetColumnGroupIndexOf(1)=2 THEN
(
for c:=0 to GetNumColumns-2 do
(
if cs >= GridValueAt(CurrentRowIndex,c,CurrentSummaryIndex-1) then MOST:=cs
else MOST:=0;
);
);
MOST;
的问题是,第一组不被看(我认为...) 我有点摸不着头脑,所以任何建议非常感谢。
希望这个问题是非常明显的...但我想做到的是将颜色设置为红色是给定的行中的大多数gridvalue ...
所以第一行包含1,1,20,0,22,22我只希望嵌入的摘要给我20,因为它的最大数量(不包括总数) ,最终,红细胞将是最大数量(20)
只是使用嵌入式摘要来显示价值。
谢谢!