[Gambas-user] Who use gb.report ? (to all gambas users)

Fabien Bodard gambas.fr at ...626...
Thu Aug 30 22:08:54 CEST 2012


15 Minutes

2012/8/30 Fabien Bodard <gambas.fr at ...626...>:
> 2012/8/30 Benoît Minisini <gambas at ...1...>:
>> Le 30/08/2012 17:50, Fabien Bodard a écrit :
>>> Well so, I need to make this big big work :-(
>>>
>>> In fact one the problem is gambas users mostly not understand the box
>>> arrangement system in gambas.
>>>
>>
>> About the "arrangement system", the main idea is:
>>
>> You make a report by telling how each element is positioned relatively
>> to each other, or relatively to its parent. That way, the report can be
>> drawn whatever the page size is.
>>
>> How it is done concretely? It's taken from the GUI arrangement system:
>>
>> - You have containers that arrange their children vertically,
>> horizontally... and that know how much space they have.
>>
>> - You have display elements that can have either absolute sizes
>> (expressed in various units). They can also marked as expandable to let
>> their parents expand them if there is space available.
>>
>> The root parent is the page itself. As the user tells the size of that
>> page, we can recursively compute the size of all page elements according
>> to the container and child elements properties, and then print the report.
>>
>> Moreover, the root parent is clever enough, if it has not enough space
>> for its children, to spread accross new pages automatically. So there is
>> way to tell which elements are repeated between different pages (so that
>> you can create headers and footers), and which are not. Fabien could
>> tell you more about that.
>
> It's the Fixed property. It force an element to be repeated each time
> his container is repeated. A container is repeated if a content need
> as new page.
>
> for an arry if the number of line is to important for the page the the
> array is repeated in the second page. if the array header have fixed
> at true then you have it on each page.
>
>
>
>
>>
>> Of course, for reports having a few elements, all that a bit complex.
> Not sur ... or for really few.
>>
>> But for real reports made by real guys who have clients having many
>> paper formats and many different printers, that will save you a lot of
>> worry.
>>
>> If you don't understand how to use Gambas GUI containers, you won't
>> understand how to use Report containers.
>>
>> Regards,
>>
>> --
>> Benoît Minisini
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> --
> Fabien Bodard



-- 
Fabien Bodard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demoreports-0.0.1.tar.gz
Type: application/x-gzip
Size: 25914 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120830/6869616c/attachment.bin>


More information about the User mailing list