本文介绍了Visual Studio 2010 RDLC:支持HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过有关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吗?

解决方案

通过在属性窗口的L / H侧的常规下编辑占位符属性,您可以在VS2010报表查看器中呈现HTML子集。这可以在.RDLC或.RDL文件中工作。



根据上面的评论:

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



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


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?

解决方案

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:

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

这篇关于Visual Studio 2010 RDLC:支持HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 07:02