[Gambas-user] Questions about gb.report
Willy Raets
willy at ...2734...
Thu Sep 26 03:29:39 CEST 2013
On Thu, 2013-09-19 at 22:00 +0200, Fabien Bodard wrote:
>
> in _new
> hresult=.....
>
>
> datalist.datacount=hresult.count
>
>
>
>
> for each datalabel :
> example :
>
>
> Public Sub DataLabel1_data(index as integer)
>
>
> hResult.Moveto(Index)
> Last.Data = hResult!myfield
>
>
> end
>
Hi Fabian,
With the help of your explanation and example I managed quite easily to
make the report I wanted. Once it's clear what does what and how, it
isn't that hard to make simple reports like mine.
One more question, something I tried but didn't manage as I (still)
don't really know how and where to do this:
I placed a ReportLabel (lets call it replbSum) that is only at the end
of the report.
In there I want the sum of one of the recordfields lets say hResult!
myfield (to stick to your example above)
1. At what event or location can I make the sum?
Can I write something like:
$iSum += hResult!myFiles
at the DataLabel1_data event (being the event where the hResult!myfields
data is put into the report)?
Or do I need to do this at a different location and or different
approach?
2. How do I place the result of $iSum in the replbSum (a ReportLabel)?
I must say that gb.report is a awesome component, once you get to play
with it a bit. You have done a really great job on it and I'll be using
it more know I had a taste of it. So as the reports I need to make,
might get more complex, more questions might follow :)
Thank you,
>
--
Kind regards,
Willy (aka gbWilly)
http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org
More information about the User
mailing list