I am using Java Spring and jxl to create a server side Excel workbook. The data to be displayed in Excel consists of already formatted numbers. I use
WritableCellFormat wcf = new WritableCellFormat(); wcf.setAlignment(Alignment.RIGHT); .... .... sheet.addCell(new Label(j, i + 1, xxx, wcf));
In the downloaded excel file, all these numbers are stored as text and therefore Excel cannot use formulas on them, it gives a warning like "Number saved as text" and I need to do "Convert to number".
In jxl, can we pass strings and tell them to interpret them as numbers? All the numbers that I have are real numbers, formatted differently using $,%, thousand separators. I do not want to convert them to real numbers and format them again when exporting to excel.
Please, help. Thanks.
java spring excel jxl jexcelapi
engg
source share