How to set Excel cell format in iReport

blow picture blow · Jul 24, 2011 · Viewed 16.6k times · Source

I'm trying to export a report as xls, but when i open my exported file i notice that all cell formats are Number and all data are wrote with ' like text data (integer fields and double fields also...) so i cant apply any formula like SUM in Excel.

How can i keep cell format in according to my iReport TextField class expression?

I'm using iReport 4.0.2.

Thanks to all.

Answer

speci picture speci · Oct 17, 2011

i've been looking for the same problem and found the following:

http://jasperreports.sourceforge.net/sample.reference/xlsformula/index.html

you can set up the "detect cell type" to default true under export excel settings in ireport.

regards