@@ -92,6 +92,10 @@ Shade alternate rows:
9292``` java
9393ws. range(0 , 0 , 10 , 10 ). style(). shadeAlternateRows(Color . GRAY2 ). set();
9494```
95+ or shade every Nth row (e.g. every 5th):
96+ ``` java
97+ ws. range(0 , 0 , 10 , 10 ). style(). shadeRows(Color . GRAY2 , 5 ). set();
98+ ```
9599
96100### Formulas
97101
@@ -101,6 +105,37 @@ ws.formula(10, 0, "=SUM(A1:A10)");
101105// With Range.toString():
102106ws. formula(10 , 0 , " =SUM(" + ws. range(0 , 0 , 9 , 0 ). toString() + " )" );
103107```
108+
109+ ### Additional worksheet features
110+ Set page orientation (visible in print preview mode):
111+ ``` java
112+ ws. pageOrientation(" landscape" )
113+ ```
114+ Set bottom, top, left, or right margin:
115+ ``` java
116+ ws. leftMargin(0.3 )
117+ ws. bottomMargin(0.2 )
118+ ```
119+ Create a freeze pane (some rows and columns will be kept still while scrolling).\
120+ To freeze the first column on the left and the top three rows:
121+ ``` java
122+ ws. freezePane(1 , 3 )
123+ ```
124+ Set header and footer content.\
125+ To set page enumeration in the top right:
126+ ``` java
127+ ws. header(" page 1 of ?" , Position . RIGHT )
128+ ```
129+ To set custom text in the footer (bottom left):
130+ ``` java
131+ ws. footer(" Generated with Fastexcel" , Position . LEFT , " Arial" , 10 )
132+ ```
133+ To provide sheetname in the bottom central position:
134+ ``` java
135+ ws. footer(" sheetname" , Position . CENTER , 8 )
136+ ```
137+
138+
104139### Multithreaded generation
105140
106141Each worksheet is generated by a different thread.
0 commit comments