Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

换行计算换行位置不正确 #242

Open
PattonMao opened this issue Feb 10, 2018 · 4 comments
Open

换行计算换行位置不正确 #242

PattonMao opened this issue Feb 10, 2018 · 4 comments

Comments

@PattonMao
Copy link

为了您的问题能得到及时准确解答,请认真填写下面各个选项,感谢您的配合。

  • 当前使用的UReport的具体版本号:

2.2.5

  • 遇到的问题描述:

表达式大段文字,或者是SQL查出来的大段文字,换行计算换行位置不正确。使用时在windows下面的开发环境没问题,但是到了centos下面的测试环境就出现问题。

  • 涉及到的异常信息(完整异常信息):

  • 相关截图:

开发环境正常
image
测试环境不对
image
image

@youseries
Copy link
Owner

1.是在centos下浏览出问题,还是服务部署在centos上,在windows下浏览出问题?

2.浏览HTML有问题,导出PDF,WORD、EXCEL有问题吗?

@PattonMao
Copy link
Author

部署在centos上,windows浏览出问题。浏览html导出pdf和word有问题,excel没试过

@youseries
Copy link
Owner

出现这一问题主要是操作系统中不存在对应的字体导致,最新版中已修复这一问题,最新版中如果发现操作系统中不存在目标字体,则采用ureport2-font包中提供的字体,所以请务必将此包放入项目,请更新最新版SNAPSHOT测试,谢谢。

@PattonMao
Copy link
Author

好的,谢谢。新版修复了这个问题,但是好像还存在一个问题,就是如果字符串本身有空格的话,附近的换行还是会存在问题,如果没有空格就没有问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants