Tried wrapping text using the following code:
range.setColumnWidth(15);
Style style = cells.getStyle();
style.setTextWrapped(true);
StyleFlag styleFlag = new StyleFlag();
styleFlag.setWrapText(true);
range.applyStyle(style, styleFlag);
which worked, but to undo this changes, to unwrap cells, I tried:
Style style = cells.getStyle();
style.setTextWrapped(false);
StyleFlag styleFlag = new StyleFlag();
styleFlag.setWrapText(false);
range.applyStyle(style, styleFlag);
which doesn’t seem to work. could you please let me know as to how to unwrap cells?