Reputation: 3039
I am using jxl to export an Excel sheet. I just need to write data into a cell into just one line without shifting data to a new line into same cell.
Expected at Cell:
Hello I am just testing you.
Actual:
Hello I am
just testing you.
My code:
WritableCellFormat tableDataFormatDefault;
tableDataFormatDefault = new WritableCellFormat(TABLE_DATA_FONT);
tableDataFormatDefault.setBorder(Border.ALL, BorderLineStyle.THIN);
tableDataFormatDefault.setWrap(true);
tableDataFormatDefault.setAlignment(Alignment.CENTRE);
tableDataFormatDefault.setWrap(true)
How can I fix this?
Upvotes: 2
Views: 233