在Excel中显示全文而不截断

问题描述:

如何在不以编程方式截断的情况下在Excel中显示全文?
目前数据被截断。是否可以自动调整行高以显示enitre文本?

How to display Full Text in Excel without truncation programatically? Currently the data is getting truncated. Is it possible to automatically adjust the row height so as to display the enitre text?



我也遇到了这些问题并以这种方式解决了这些问题:

对于第一个问题,请在报告中添加以下属性:


I got these problems also and solved them this way:
For the first one, add the following property to your report:

net.sf.jasperreports.print.keep.full.text

并放入它到 true

您还可以将此属性添加到特定文本字段。有关更多信息,请参阅此链接

You can also add this property to a specific text field. For more information, refer to this link

对于第二个,正如Deathtiny所说,将 isStretchWithOverflow = true 添加到您所在的字段希望,因为它随着文本的数量而增长。

For the second one, as Deathtiny says, add isStretchWithOverflow=true to the field that you want, for it to grow with the amount of text in it.

我希望这会有所帮助。