POI dataFormat种类

来源:互联网 发布:python list转字典 编辑:程序博客网 时间:2024/04/29 22:27

POI dataFormat种类

http://blog.csdn.net/phoenixx123/article/details/12720431


环境:POI3.9 自定义DataFormat

[plain] view plain copy
 print?
  1. Utility to identify builtin formats. Now can handle user defined data formats also. The following is a list of the formats as returned by this class.  
  2. 0, "General"  
  3. 1, "0"  
  4. 2, "0.00"  
  5. 3, "#,##0"  
  6. 4, "#,##0.00"  
  7. 5, "($#,##0_);($#,##0)"  
  8. 6, "($#,##0_);[Red]($#,##0)"  
  9. 7, "($#,##0.00);($#,##0.00)"  
  10. 8, "($#,##0.00_);[Red]($#,##0.00)"  
  11. 9, "0%"  
  12. 0xa, "0.00%"  
  13. 0xb, "0.00E+00"  
  14. 0xc, "# ?/?"  
  15. 0xd, "# ??/??"  
  16. 0xe, "m/d/yy"  
  17. 0xf, "d-mmm-yy"  
  18. 0x10, "d-mmm"  
  19. 0x11, "mmm-yy"  
  20. 0x12, "h:mm AM/PM"  
  21. 0x13, "h:mm:ss AM/PM"  
  22. 0x14, "h:mm"  
  23. 0x15, "h:mm:ss"  
  24. 0x16, "m/d/yy h:mm"  
  25. // 0x17 - 0x24 reserved for international and undocumented 0x25, "(#,##0_);(#,##0)"  
  26.   
  27. 0x26, "(#,##0_);[Red](#,##0)"  
  28.   
  29. 0x27, "(#,##0.00_);(#,##0.00)"  
  30.   
  31. 0x28, "(#,##0.00_);[Red](#,##0.00)"  
  32.   
  33. 0x29, "_(*#,##0_);_(*(#,##0);_(* \"-\"_);_(@_)"  
  34.   
  35. 0x2a, "_($*#,##0_);_($*(#,##0);_($* \"-\"_);_(@_)"  
  36.   
  37. 0x2b, "_(*#,##0.00_);_(*(#,##0.00);_(*\"-\"??_);_(@_)"  
  38.   
  39. 0x2c, "_($*#,##0.00_);_($*(#,##0.00);_($*\"-\"??_);_(@_)"  
  40.   
  41. 0x2d, "mm:ss"  
  42.   
  43. 0x2e, "[h]:mm:ss"  
  44.   
  45. 0x2f, "mm:ss.0"  
  46.   
  47. 0x30, "##0.0E+0"  
  48.   
  49. 0x31, "@" - This is text format.  
  50.   
  51. 0x31 "text" - Alias for "@"  

自定义不用愁格式了。


refurl:http://www.javadocexamples.com/org/apache/poi/hssf/usermodel/org.apache.poi.hssf.usermodel.HSSFDataFormat.html


http://blog.csdn.net/caihaijiang/article/details/6381948


http://www.cnblogs.com/cndavy/archive/2012/09/24/2700109.html


http://www.blogjava.net/Angi/articles/342857.html


0 0
原创粉丝点击