在sql server客户端报告(rdlc)中呈现html代码 [英] Render html code in sql server client report (rdlc)
问题描述
我使用asp.net web应用程序和microsoft visual studio reportviewer控件和rdlc创建报表(不使用sql server报表)。我使用产品表来查看结果。它有五个字段,我在报告中显示所有项目。一个字段是Description,它将HTML代码存储为值(例如:
< div>< ul>< li> a< / li>< li> b< / li>< / ul>< b> aaaa< / b>< / div>
)。我想在我的报告的描述字段中显示这个html代码的输出。但在我的报告中,它显示了我存储在我的表中的html值(
):b$ b
< div>< ul> < li>< / li>< li> b< / li>< / ul>< b> aaaa< / b>< / div>
pre>
)。我如何在我的报告中呈现html。请给我一个解决方案。
解决方案请参阅在SQL Server 2008的Reporting Services文本框中呈现HTML
我没有尝试过,可能不适用于rdlc等,所以YMMV
I am using the asp.net web application and microsoft visual studio reportviewer control and rdlc for creating a report ( not using sql server reporting). I used the Product table to view the result. It has five fields and I display all the itemsin the report. One field is Description and it store the html code as the value(eg:
<div><ul><li>a</li><li>b</li></ul><b>aaaa</b></div>
). I want to disply the output of this html code in my report's description field. But in my report, it shows the html value that I stored in my table (:
<div><ul><li>a</li><li>b</li></ul><b>aaaa</b></div>
). How can I render the html in my report. Please give me a solution.
解决方案See Rendering HTML in Reporting Services Text Boxes in SQL Server 2008
I've not tried it and may not apply to rdlc etc, so YMMV
这篇关于在sql server客户端报告(rdlc)中呈现html代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!