|
[text/plain 729b]
Thanks, John, both v.2.20.05 and v2.21 work perfectly. To others reading
along, the subtlety that $collapsed needs to be set on the
summary/containing row, not the hidden rows, is key. It's correctly
documented, I just missed this detail on first read.
Here's the code I'm using for an outline spreadsheet writer where the
summary row is above the collapsed section (as opposed to outline.pl's
"summary row below"):
$worksheet->set_row(
$row_number, $row_height, undef, $hidden, $depth
);
$worksheet->set_row( ## Set parent row to be collapsed.
$row_number - 1, undef, undef, undef, undef, 1
) if $hidden;
- Barrie
|