News combit Dev Blog

Keeping Groups of Table Lines Together

Posted: Thursday, August 22, 2019 | 0 comment(s)
 
Continuing our quest to make the table object more versatile and powerful in LL25, we added an important tweak to the way table lines are kept together. Before, you just had the choice between keeping all lines together or none. That means, if the output for a single record stretched over a couple of pages and consisted of several line definitions, there was hardly ever a way to get the wrapping "right". 

Often, such a long output will consist of several sections then where a break between some of them would be okay whereas a break within a section would be undesireable. The new LL25 feature allows to handle exactly this situation.

As an example, I've adapted Jeff Atwood's Programmer's Bill Of Rights to be used in a table with free content. The table's line definitions look like this:



and the resulting output looks like this:



Note how the final block gets wrapped right after the header, even though the property "Keep Line Definitions Together" is set to true. The reason is simple - "Keep Line Definitions Together" refers to all lines. List & Label quickly realizes that there's not enough space to keep all lines together and wraps the line definition happily then. However - this is not what you really want here. It would be great to at least be able to keep the headings together with their (non-wrapped) paragraphs. To enable this, simply set the new property "Keep Line Definitions Together > Line Groups" to true. Next, assign a line group index - which is the second part of this new feature - to the lines, making sure the heading and paragraph get the same index:



This way you can select sections that should be kept together rather than the whole block that would never fit anyway. The result of course is then as expected:



This allows a much more flexible approach to the wrapping behavior in List & Label 25. It can also be used e.g. for lengthy invoice footers for keeping taxation information in a block while allowing other footers to float freely.




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
June 2021 (1)
May 2021 (1)
April 2021 (2)
March 2021 (1)
February 2021 (2)
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)