Add Style of Cell’s on Excel Sheet Using JExcel APIs.

Add Style of Cell’s on Excel Sheet Using JExcel APIs.

Previous Home Next

 

Now we will see to use the UnderlineStyle of Cell’s on Excel Sheet Using JExcel APIs.

For using the underline style in a cell of an excel worksheet we should use have the jxl.write.WritableFont.

 WritableFont wfobj=new WritableFont(WritableFont.TIMES, 10, WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE,Colour.BLUE);
        WritableCellFormat cfobj=new WritableCellFormat(wfobj);

In the above code snippet, we have set the UnderlineStyle as NO_UNDERLINE i.e. it means that there will be underlining in the texts in the cells of the sheet.


 

Previous Home Next