简体   繁体   English

数字在生成的Excel文件中显示为#

[英]Number display as # in generated Excel file

I have an Excel file generated by JasperReports . 我有一个由JasperReports生成的Excel文件。 What you can see here is the Excel 's column will be display ### if the number is too long. 如果数字太长,您将在此处看到Excel的列将显示###。 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 我尝试将列设置为Stretch with overflow Stretch typeStretch 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. 您将需要在报表元素或整个报表iself上设置适当的Jasper Reports excel属性。 Documentation: http://jasperreports.sourceforge.net/sample.reference/xlsfeatures/ 文档: 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. 如果这些属性在JasperReports版本中不可用,则您可能只需要简单地调整大小即可获得不错的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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