• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Trouble with Apache POI grouping rows

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using it to generate a Excel spreadsheet. And one feature is to expand\contract rows as groups. The trouble is: I have one overall level, then I want multiple level 2 levels that group the rows. I can't seem to get the numaric combination right. I end up with a single level two grouping that expands between 1 to 10.

hssfSheet.groupRow(1, 20);//level 1
hssfSheet.groupRow(1, 7);//level 2
hssfSheet.groupRow(8, 10);//level 2


This is what I am trying to achieve; two row groups, 1 to 7 and 8 to 10, both at level 2.
_____
1| | 1
| |
| |
| |
| |
| |
| |7(-)
| |8
| |
| |10(-)
|
|
|
|
|15(-)
 
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic