How to hide certain on SQL Reporting Services 2005

。_饼干妹妹 提交于 2019-12-24 06:29:26

问题


I created a report in SQL Report Services 2005 and everything is coming out right but on my comments field I am getting bunch of HTML Tags which I dont want to show. See below the sample of my report comments field data. I really appreciate somebody let me know how to hide these tags not to show on the output of the report in my comment field. Thanks and appreciate your quick response.

<P>Meet with low bidder Hill York on site to go over each item in the scope of work.</P>
<P>Met with Richard Waugh, Joe Charles of Hill Pines, Jim Rogers, Ed Chris, Dwayne Right on site and both parties agreed that everything in the scope of work was covered in the bid. Awaiting approval from Council on August 6th 2010.</P>


回答1:


The values must be coming from the source. I've not ever seen this in SSRS.

You'll need to use an expression to remove them and depending on how many are in your data this could become burdensome. The expression Replace(Replace(Fields!Comment.Value,"<P>",""),"</P>","") will remove them from a field name Comment.




回答2:


Use string.replace in the eypressions field to strip out the tags, perhaps.

The tags are most likely not coming from SSRS but are in your data. At least, I've never seen it SSRS add HTML tags...




回答3:


If you want to hide any comment that uses <p>, then try putting this in the Hidden property:

=iif(instr(Fields!Comment.Value,"<p>") > 0, True, False)


来源:https://stackoverflow.com/questions/1227565/how-to-hide-certain-on-sql-reporting-services-2005

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!