如何在Crystal Report中加入Html Field, Rtf Field

首先创建 一个新的Parameter, 比如名字 News,Type: String, List of Values: Static. 

保存后, 把新的 Parameter Field拖入report 适合的位置。

选择这个field, Format Field, 进入 Paragraph tag, Text Interpretation 选Html Text。

后台程序 report.SetParameter("News", "<a href='http://google.com'>google</a>");

生成的report 就会含有超链接

 

同样方法可以支持 Rtf Text。

 

posted @ 2013-06-25 11:04  gunsmoke  阅读(217)  评论(0编辑  收藏  举报