保存的字段如下所示:
<HTML><BODY><div STYLE="text-align:left;Font-family:Tahoma;Font-style:normal;Font-weight:normal;Font-size:11;color:#000000;"><div><div><P><SPAN>This is a bulleted List</SPAN></P><ul><li><P><SPAN>One</SPAN></P></li><li><P><SPAN>Two</SPAN></P></li><li><P><SPAN>Three</SPAN></P></li></ul><P><SPAN /></P></div></div></div></BODY></HTML>
在Crystal中,它看起来像这样:
This is a bulleted List One Two Three
换句话说,没有子d.为什么不?
解决方法 无论出于何种原因,Crystal Reports只支持HTML标记的子集.根据 this forum thread,子d不是其中之一.为了后人的缘故,这里是支持的HTML标签的声称列表:
HTMLbodydiv (causes a paragraph break)tr (causes only a paragraph break; does not preserve column structure of a table)spanFontp (causes a paragraph break)br (causes a paragraph break)h1 (causes a paragraph break,makes the Font bold & twice default size)h2 (causes a paragraph break,makes the Font bold & 1.5 times default size)h3 (causes a paragraph break,makes the Font bold & 9/8 default size)h4 (causes a paragraph break,makes the Font bold)h5 (causes a paragraph break,makes the Font bold & 5/6 default size)h6 (causes a paragraph break,makes the Font bold & 5/8 default size)centerbig (increases Font size by 2 points)small (decreases Font size by 2 points if it's 8 points or larger)bisstrikeu总结
以上是内存溢出为你收集整理的Crystal Report显示HTML文本,但子d不显示.为什么?全部内容,希望文章能够帮你解决Crystal Report显示HTML文本,但子d不显示.为什么?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)