我正在使用 asp.net Web 应用程序和 microsoft Visual Studio ReportViewer 控件和 rdlc 来创建报告(不使用 sql server 报告)。我使用产品表来查看结果。它有五个字段,我显示报告中的所有项目。其中一个字段是“描述”,它将 html 代码存储为值(例如:
<div><ul><li>a</li><li>b</li></ul><b>aaaa</b></div>
)。我想在报告的描述字段中显示此 html 代码的输出。但在我的报告中,它显示了我存储在表中的 html 值(:
<div><ul><li>a</li><li>b</li></ul><b>aaaa</b></div>
)。如何在我的报告中呈现 html?请给我一个解决方案。
最佳答案
参见Rendering HTML in Reporting Services Text Boxes in SQL Server 2008
我还没有尝试过,可能不适用于 rdlc 等,所以 YMMV
关于html - 在sql server客户端报告(rdlc)中渲染html代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2172105/