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. Of course, for reports having a few elements, all that a bit complex. 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user