2012-03-29 110 views
0

使用水晶報表7如何分割組

單報告(未分報告還說,通過ID組)

ID Value total 

001 100 2000 
002 300 1000 
003 400 4000 
...... 

我有n行數據,我想使前兩排小計,而不是每個2行,報告應顯示1行2列,然後1 &第二排小計,則第3行,第4行,第5行到第n行....

預計輸出繼電器

ID Value total subtotal 

001 100 2000 
002 200 3000 
------------------- 
total 300 5000 0 

003 300 1000 
...... 

如何在水晶報告中做到這一點。

需要水晶報告公式或建議

+0

如果這些版本不適用,請不要使用[crystal-reports-2008]或[crystal-report-8.5]標籤標記您的問題。 – 2012-03-30 11:02:55

回答

0

創建此公式;用實際字段代替{table.field}

//{@stupid group} 
If {table.field} IN ['001','002'] Then 
    '002' 
Else 
    {table.field} 

在公式中插入一個組。