您可以通过编辑属性窗口L / H侧“常规”下的“占位符”属性,在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文件.