File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,24 @@ ws.repeatRows(2); // keep the third row on each page when printing.
200200ws. repeatCols(0 , 2 ); // repeat first three columns (A to C) on each page when printing.
201201ws. repeatCols(0 ); // repeat only first column (A) on each page for the print setup.
202202```
203+ Hide sheet.
204+
205+ ```
206+ ws.setVisibilityState(VisibilityState.HIDDEN);
207+ ```
208+
209+ Hide rows or colums
210+
211+ ``` java
212+ ws. hideRow(2 );
213+ ws. hideColumn(2 );
214+ IntStream . rangeClosed(3 ,5 ). forEach(ws:: hideRow);
215+ IntStream . rangeClosed(3 ,5 ). forEach(ws:: hideColumn);
216+ ```
217+
203218Set header and footer content.\
204219To set page enumeration in the top right:
220+
205221``` java
206222ws. header(" page 1 of ?" , Position . RIGHT );
207223```
You can’t perform that action at this time.
0 commit comments