我正在写jasper报告。我正在从数据库中获取html格式的数据。例如:
<html><body><p>A) For <u>active</u> and <b>liquidated</b> <i>commitments</i>, </p>this is sum of <font font-weight=bold>Funded Commitments</font> in USD as of date and Unfunded Commitment in USD as of date,上面的部分在我的数据库表中
除了和fort-weight之外,所有的html代码都运行得很好。
有人知道这是什么原因/解决方案吗?
仅供参考:我正在使用MYSQL作为数据库(我不知道这个信息是否有用)。
发布于 2014-05-05 15:53:54
简而言之,您缺少所需的字体。这里有一篇很好的帖子,解释了发生了什么。
"embedding-fonts-into-pdf-generated-by-jasperreport“
编辑:我可能错了,但我仍然认为这是字体问题。是否确定您的FONT_MAP导出参数设置正确?
"html markup doesn't work“
https://stackoverflow.com/questions/23466974
复制相似问题