原代码如下,但是,我User觉得希望这一栏是数字属性,这样不用每次都转换。
怎么设置Excel的单元格为为数字的属性?
WritableFont wf_red_Number = new WritableFont 
        (WritableFont.ARIAL,10,WritableFont.NO_BOLD,false,jxl.format.UnderlineStyle.NO_UNDERLINE, jxl.format.Colour.RED);
        WritableCellFormat wcf_red_Number = new WritableCellFormat(wf_red_Number);
wcf_red_Number.setBackground(jxl.format.Colour.WHITE);
wcf_red_Number.setAlignment(jxl.format.Alignment.CENTRE);
wcf_red_Number.setBorder(jxl.format.Border.ALL, jxl.format.BorderLineStyle.THIN);
wcf_red_Number.setVerticalAlignment(jxl.format.VerticalAlignment.CENTRE);
wcf_red_Number.setFontColour(jxl.format.Colour.RED);