hi, the best way to do this is using ReportGroup function. The documentation is now well detailed about it, but you can see a test example using it here:

- http://geraldo.svn.sourceforge.net/viewvc/geraldo/geraldo/tests/07-groupping.txt?view=markup

But your suggestion is cool for other cases. We will do it :)