How can i put this string in to a cell using java apache poi?
The string is \"Hello world Hello\"
As u can see i need to make a part of the text bol
cell.setValue(value);
RichTextString rts = cell.getRichStringCellValue();
rts.applyFont(value.indexOf(subValue), value.length(), boldFonts);
cell.setCellValue(rts);
Where value=something+subValue. Here subValue contents will be with bold fonts. for example if we have someting="Hello" and subValue="world" we will print:
Hello world
in the cell.