rdlc转换成html,Visual Studio 2010 RDLC:支持HTML?(Visual Studio 2010 RDLC: Support for HTML?)...

Visual Studio 2010 RDLC:支持HTML?(Visual Studio 2010 RDLC: Support for 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吗?

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?

原文:https://stackoverflow.com/questions/3786884

更新时间:2019-10-03 10:39

最满意答案

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

根据你上面的评论:

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

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

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

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.

相关问答

您可以通过在属性窗口的L / H侧的“常规”下编辑占位符属性来在VS2010报表查看器中呈现HTML子集。 这将在.RDLC或.RDL文件中工作。 根据你上面的评论: @Alison:问题很简单:如果我在报表中显示包含HTML的字段,则此字段将显示HTML源代码,而不是呈现的内容。 您声明VS2008 Professional中的rdlc支持HTML渲染让我感到惊讶。 据我所知,情况并非如此(例如,请参阅stackoverflow.com/questions/2172105)。 你能提供更多关于如

...

您是否尝试过本文中描述的步骤? 您需要执行以下操作: ctrl + c ctrl + shift + v (粘贴特殊),不正常粘贴! Did you try out the steps described in this article? You need to do the following: ctrl + c ctrl + shift + v (paste special), not normal paste!

还有一个Visual C ++ 2010的列表 (该文章描述了已实现的核心语言功能;本文链接的PDF描述了已实现的库功能)。 编辑:我刚刚遇到了一个很棒的列表:Apache C ++标准库wiki有一个列出C ++ 11核心语言功能的表 ,哪些C ++编译器支持它们。 There is also a list for Visual C++ 2010 (that article describes the core language features that have been implement

...

当你在一个html编辑器中时,页面顶部有一个框用于选择验证,默认为XHTML(我认为),并且可以将其更改为HTML5。 When you are in an html editor, there is a box at the top of the page to select the validation, it defaults to XHTML (I think), and you can change it to HTML5.

您可能在没有C ++编译器的情况下安装了Visual Studio。 您必须启动安装程序并更改安装,以便安装C ++编译器。 You likely have Visual Studio installed without the C++ compiler. You have to start the installer and alter the installation so that C++ compiler is installed.

在Visual Studio 2010中启动ASP.NET Web应用程序并删除所有.ASPX文件并创建.HTML文件。 IDE非常支持HTML和JavaScript(至少对于jQuery),但它并不专注于您的使用案例。 通常使用Visual Studio进行HTML相关工作的人是像我这样的ASP.NET开发人员。 纯HTML工作非常“繁重”。 Start an ASP.NET Web Application in Visual Studio 2010 and delete all of the

...

使用刚刚发布的ReportViewer 10.0控件,一切都会正常工作。 谢谢。 Use the ReportViewer 10.0 control that was just released and everything will work. Thanks.

似乎不完全支持字体标记,但使用span标记将起作用。 将以下表达式设置为占位符的值,它将正确呈现: =" Some text "

此外,请确保在“占位符”属性中将“标记类型”设置为“HTML”。 https://msdn.microsoft.com/en-us/library/cc645967.aspx The font tag doesn't seem to be fully supported, but using a s

...

将验证目标更改为HTML5。 更多信息: http : //silverlightfeeds.com/post/3217/HTML5_Improvements_with_the_ASP.NET_MVC_3_Tools_Update.aspx Change the validation target to HTML5. more info: http://silverlightfeeds.com/post/3217/HTML5_Improvements_with_the_ASP.NET_MVC_3_

...

如果您只有3个ID值为1,2,3的设施类型,请尝试此操作 =IIF(Fields!ID.Value=1, Fields!ID.Value, IIF(Fields!ID.Value=2, Fields!ID.Value, IIF(Fields.ID.Value=3, Fields!ID.Value, "empty")))

If you have ONLY 3 Facility Types with ID values 1,2,3 then try this =IIF(Fields!ID.Value

...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值