我正在嘗試編寫一個Crystal報表,其總計以主報表的不同方式分組。到目前爲止,我能做到這一點的唯一方法是使用總報告的子報告,但這意味着必須再次擊中數據源才能檢索相同的數據,這看起來像是無稽之談。下面是一個簡化的例子:是否有某種方式可以回收Crystal Reports數據集?
date name earnings source location
-----------------------------------------------------------
12-AUG-2008 Tom $50.00 washing cars uptown
12-AUG-2008 Dick $100.00 washing cars downtown { main report }
12-AUG-2008 Harry $75.00 mowing lawns around town
total earnings for washing cars: $150.00 { subreport }
total earnings for mowing lawns: $75.00
date name earnings source location
-----------------------------------------------------------
13-AUG-2008 John $95.00 dog walking downtown
13-AUG-2008 Jane $105.00 washing cars around town { main report }
13-AUG-2008 Dave $65.00 mowing lawns around town
total earnings for dog walking: $95.00
total earnings for washing cars: $105.00 { subreport }
total earnings for mowing lawns: $65.00
在這個例子中,主報告由「日期」分組,但總計由「源」附加分組。我查了一些使用運行總數的例子,但他們並沒有真正做我需要的。是不是有一些存儲結果集的方法,並且主報表和子報表引用都是相同的數據?