Excel Cell Format in JasperReport Report

后端 未结 4 1880
一向
一向 2021-01-05 11:01

I\'m working on JasperReport Report that generates Excel file. For some reason my cell formats/types are not how they should be. For example I have Date object in my cell bu

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-05 11:32

    JasperReports version 4.1.1 net.sf.jasperreports.export.xls.pattern was introduced.

    check here

    In properties expressions

    properties name >> net.sf.jasperreports.export.xls.pattern

    properties value >> @ for text, yyyy-mm-dd for date format, #,##0.00;-#,##0.00 for currency, etc....

提交回复
热议问题