Visual Studio 2010 RDLC:支持 HTML?

发布于 2024-09-24 18:29:19 字数 463 浏览 0 评论 0原文

我听说过有传言说,使用 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 吗?

I've read rumors that with the Report Viewer component of Visual Studio 2010 Professional, it is possible to render HTML from the database into a report. Unfortunately, I wasn't able to find definite information online and I'd rather not buy the upgrade just to try it out.

Can anyone confirm or deny that this feature exists, preferably by citing a credible source (such as the VS 2010 documentation)?

(EDIT) Clarification: I'm talking about Visual Studio, not SQL Server. I know that SSRS 2008 and SSRS 2010 support rendering HTML. I also know that Visual Studio and SQL Server use the same libraries for rendering reports. That's why I think that it might be possible to render HTML in Visual Studio 2010 client-side ("local processing") RDLC reports. I just want someone to confirm this: Can I render HTML using the ReportViewer component of Visual Studio 2010?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

莳間冲淡了誓言ζ 2024-10-01 18:29:19

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

根据您上面的评论:

@Alison:问题非常简单:如果我在报表中显示包含 HTML 的字段,则该字段显示 HTML 源而不是呈现的内容。您关于 VS2008 Professional 中的 rdlc 支持 HTML 渲染的说法让我感到惊讶。据我所知,情况并非如此(例如,参见 stackoverflow.com/questions/2172105)。您能否提供更多关于如何在 VS2008 报告中显示渲染 HTML 的信息(请注意,我说的是 rdlc 报告,而不是 Crystal 报告)?

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

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

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

You can render subsets of HTML in a VS2010 Report Viewer by editing the Place Holder properties under "General" on the L/H side of the properties window. This will work in .RDLC or .RDL file.

According to your comment above:

@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)?

Create a placeholder, or select one that may already be in a grid for example. Right Click and select Placeholder Properties. General should be selected by default, look under Markup Type, select the "HTML - Interpret HTML tags as styles" radio button. This will cause the control to render a subset of HTML.

Clarification: This works for .RDLC files created with VS2010 and its Report Viewer.

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

放我走吧 2024-10-01 18:29:19

是的,您可以在 Visual Studio 2010 Professional 中渲染 html。您只需双击要渲染的文本字段,它将打开占位符属性窗口,默认情况下,左上角的“常规”选项卡将被选中,如果未选中,请选择“常规”选项卡,您可以在其中选择“常规”选项卡。将看到单选按钮选项:Html-将 HTML 标记解释为样式,请选择该选项并单击“确定”,这应该可以工作。

Yes, you can Render html in Visual Studio 2010 Professional. Only you need to do is double click on text field that you want to render, It will open Placeholder Properties window, By default General tab will be selected on the left top corner, if it is not selected , Please select General tab, there you will see radio button option:Html-Interpret HTML tags as style, Please select that option and click ok, that should work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文