News combit Dev Blog

How Your Data Will Never Look Awkward Again

Posted: Wednesday, June 8, 2016 | 0 comment(s)
 
Sorry for the gonzo title of this blog post – I just couldn't resist. I actually started working for combit in 1998 which is a full 18 years ago. And this is the feature I was asked for the most. No kidding. From the early days, way before we had the report container, people wanted this one thing – keep groups together. The reasoning is simple, if you have rather short groups but a huge number of them, you don't want page breaks within one group but rather get a page wrap before the group header and then the whole group on the next page. Totally simple, totally understandable, totally impossible so far.

The reason why we didn't have this feature for 21 versions is just as logical – in order to know if a group will fit on a page, we'd need to do some kind of lookahead to check and see if it will work out and – if not – rollback and do the wrapping. And it is exactly this lookahead that needs a direct access to the data source. However – at least for .NET and C++, this direct access is available in the form of our Data Provider interface. And so we were finally able to fulfill this request. Using the feature is dead simple, the group header has a new property "Keep Group Together" which you can set to "Yes".
 

New feature of version 22

That's it. Internally, this spawns a two-pass loop where the first pass measures the group lengths and the second then "knows" how much space needs to be reserved for the desired output. So instead of this result, where the sub group "EXC" gets wrapped after the first record although the group only contains two items:
 

New feature of version 22


You get this, which is much better readable, processable and end user friendly:
 

New feature of version 22

And while we were at it, we've also made sure to extend this feature to sub tables in the report container. This allows you to keep a "master" line together with the full sub table tree on a single page (if it fits, of course). And the same works for table-in-table as well.




Author: Jochen Bartlau
Head of Development List & Label

Jochen Bartlau leads the development at combit as Managing Director. He's a Microsoft .NET enthusiast driving innovation & agile project management. The mobile devices geek who used to be a physicist in his first life loves to spend his spare time with his family.


  

RSS
combit Development BlogRSS
What’s this blog for?
A place to share updates about the ongoing development of our products. General musings on the software industry included.
Archive
January 2021 (1)
December 2020 (2)
November 2020 (1)
October 2020 (2)
September 2020 (1)
August 2020 (2)
July 2020 (1)
June 2020 (1)
May 2020 (2)
April 2020 (2)
March 2020 (2)
February 2020 (1)
January 2020 (1)
December 2019 (1)
November 2019 (2)
October 2019 (2)
September 2019 (2)
August 2019 (2)
July 2019 (2)
June 2019 (2)
May 2019 (1)
April 2019 (0)
April 2019 (1)
March 2019 (1)
February 2019 (1)
January 2019 (1)
December 2018 (1)
November 2018 (2)
October 2018 (4)
September 2018 (4)
August 2018 (2)
July 2018 (2)
June 2018 (2)
May 2018 (1)
April 2018 (1)
March 2018 (1)
February 2018 (2)
January 2018 (1)
December 2017 (1)
November 2017 (2)
October 2017 (3)
September 2017 (3)
August 2017 (2)
July 2017 (2)
June 2017 (1)
May 2017 (2)
April 2017 (1)
March 2017 (1)
February 2017 (1)
January 2017 (2)
December 2016 (1)
November 2016 (1)
October 2016 (4)
September 2016 (5)
August 2016 (2)
July 2016 (2)
June 2016 (3)
May 2016 (2)
April 2016 (3)
March 2016 (3)
February 2016 (1)
January 2016 (2)
December 2015 (2)
November 2015 (1)
October 2015 (4)
September 2015 (5)
August 2015 (2)
July 2015 (2)
June 2015 (2)
May 2015 (1)
April 2015 (2)
March 2015 (1)
February 2015 (1)
January 2015 (1)
December 2014 (2)
November 2014 (1)
October 2014 (1)
September 2014 (2)
August 2014 (1)
July 2014 (2)
June 2014 (1)
May 2014 (2)
April 2014 (1)
March 2014 (2)
+1 800 256 3608 (toll-free North America only)