Page 1 of 1

Hide a row with POI

Posted: Mon Nov 25, 2024 7:57 pm
by jeqberry
I don't see a shortcut in the Klement tools to make a row be hidden.

Re: Hide a row with POI

Posted: Mon Nov 25, 2024 8:53 pm
by Scott Klement
You could do it by adding code like this:

Code: Select all

     D SSRow_setZeroHeight...
     D                 PR                  EXTPROC(*JAVA
     D                                     : ROW_CLASS
     D                                     : 'setZeroHeight')
     D   newVal                       1N   value
Then when you have a row object and want to hide the row, you do this:

Code: Select all

   SSRow_setZeroHeight(row: *ON);
(or pass *OFF to unhide a row)