gpt4 book ai didi

html - Visual Studio 2010 RDLC : Support for HTML?

转载 作者:太空狗 更新时间:2023-10-29 13:42:22 24 4
gpt4 key购买 nike

我读到谣言,使用 Visual Studio 2010 Professional 的报表查看器组件,可以将 HTML 从数据库呈现到报表中。不幸的是,我无法在网上找到确切的信息,我宁愿不购买升级只是为了试用一下。

谁能确认或否认此功能的存在,最好是引用可靠的来源(例如 VS 2010 文档)?

(编辑)澄清:我说的是 Visual Studio,而不是 SQL Server。我知道 SSRS 2008 和 SSRS 2010 支持呈现 HTML。我还知道 Visual Studio 和 SQL Server 使用相同的库来呈现报告。这就是为什么我认为可以在 Visual Studio 2010 客户端(“本地处理”)RDLC 报告中呈现 HTML。我只想有人确认这一点:我可以使用 Visual Studio 2010 的 ReportViewer 组件呈现 HTML 吗?

最佳答案

您可以在 VS2010 报表查看器中呈现 HTML 的子集,方法是在属性窗口左/右侧的“常规”下编辑占位符属性。这将适用于 .RDLC 或 .RDL 文件。

根据您上面的评论:

@Alison: The problem is quite simple: If I display a field containing HTML in a report, this field shows the HTML source instead of the rendered content. Your statement that rdlc s in VS2008 Professional support HTML rendering surprises me. As far as I know, this is not the case (see, for example, stackoverflow.com/questions/2172105). Can you give more information on how you think it is possible to display rendered HTML in a VS2008 report (note that I am talking about rdlc reports, not Crystal reports)?

创建一个占位符,或者选择一个可能已经在网格中的占位符。右键单击并选择占位符属性。默认情况下应选择常规,查看标记类型,选择“HTML - 将 HTML 标签解释为样式”单选按钮。这将导致控件呈现 HTML 的子集。

说明:这适用于使用 VS2010 及其报表查看器创建的 .RDLC 文件。

http://msdn.microsoft.com/en-us/library/cc645967.aspx

关于html - Visual Studio 2010 RDLC : Support for HTML?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3786884/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com