简体   繁体   English

Crystal Reports Java报告组件:Linux计算机(CentOS)上的图表上没有文本

[英]Crystal Reports Java Reporting Component: no texts on diagrams on Linux machine (CentOS)

I spent 3 days trying to solve this problem without success. 我花了3天的时间来解决这个问题,但没有成功。 So I definitely need somebodys help. 所以我绝对需要别人的帮助。

The issue 问题

My JSP-based web-application displays couple of reports using Java Reporting Components. 我的基于JSP的Web应用程序使用Java Reporting Components显示了几个报告。 Each report contains one or more diagrams. 每个报告包含一个或多个图表。 Reports are created using Crystal Reports designer 2008 使用Crystal Reports Designer 2008创建报表

Everything works fine on my Windows machine, but on Linux production server I don't see any text on diagrams (title, legend and so on). 在Windows机器上,一切正常,但是在Linux生产服务器上,图表上没有显示任何文本(标题,图例等)。 All other functions - charts themselves, reports, export to PDF etc. - are working. 所有其他功能-图表本身,报告,导出为PDF等-都可以使用。

Environment 环境

CentOS 5
Tomcat 6
JRC 12.2.211

What I've already tried: 我已经尝试过的:

  • To check fonts installed and install windows fonts. 检查安装的字体并安装Windows字体。 It helped me to solve issues with PDF, but still no texts on diagrams 它帮助我解决了PDF问题,但是图表上仍然没有文本
  • To check possibility to draw text from Java on this machine. 检查在此计算机上从Java绘制文本的可能性。 I've just wrote simple class that draws text on image using drawString - it works fine even if I specify font that does not exist 我刚刚编写了一个简单的类,使用drawString在图像上绘制文本-即使我指定了不存在的字体,它也可以正常工作
  • To change diagram parameters (font, text color, transparency) - without success 更改图表参数(字体,文本颜色,透明度)-不成功
  • To change Java 2D options - turn OpenGL on/off, offscreen pixmap support, DGA - still no success 更改Java 2D选项-打开/关闭OpenGL,屏幕外像素图支持,DGA-仍然没有成功
  • To convert report to higher version (CR 2011) - the same 将报告转换为更高版本(CR 2011)-相同
  • To upgrade rendering engine (JRC 12.2.211 -> JRC 12.2.214) - the same. 升级渲染引擎(JRC 12.2.211-> JRC 12.2.214)-相同。

Does enybody have this issue or ideas how to fix it? 有人有这个问题或想法如何解决吗?

Thank you! 谢谢!

Java从1.6.17升级到1.6.22修复了这种情况。

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

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