Topic: 请教JXL关于输出数字格式的问题? |
Print this page |
1.请教JXL关于输出数字格式的问题? | Copy to clipboard |
Posted by: renaldo Posted on: 2004-12-30 15:07 想要jxl生成的excel文件中,数字单元格具有以下格式: 123,467,89.00 怎样做? double cost_price=0; jxl.write.NumberFormat nf = new jxl.write.NumberFormat("###,###,###.00"); jxl.write.WritableCellFormat wcfN = new jxl.write.WritableCellFormat(nf); jxl.write.Number tempNumberCell = new jxl.write.Number(3, i, cost_price, wcfN); 我这样写好象不行啊 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |