简体   繁体   中英

Number display as # in generated Excel file

I have an Excel file generated by JasperReports . What you can see here is the Excel 's column will be display ### if the number is too long. I don't want to resize the width of column, i just want to display the number without seen as ### and stretch the height. I have tried set the column to Stretch with overflow and Stretch type = Relative to band height

This is the screenshot:

在此处输入图片说明

You will need to set the appropriate Jasper Reports excel property on your report element, or on the whole report iself. Documentation: http://jasperreports.sourceforge.net/sample.reference/xlsfeatures/

Specifically

net.sf.jasperreports.export.xls.column.width.ratio

If these properties are not available in your JasperReports version, you may have to simply fiddle around with the sizing to get something decent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM