Crystal Reports 11 - 删除备注字段上的 HTML 格式
使用 Crystal Reports 11,我想报告备注字段中的字符数。问题是它是通过系统的 HTML 提供的。
我想删除“<”内的所有文本和“>”我在执行此操作时遇到一些问题。
我猜想我最好的方法是替换公式,但它似乎只允许替换特定字符或字符组。我尝试了以下操作:
Replace ({Field_Name},"","")
基本上我希望能够删除“<>”中的所有文本符号,然后能够查看剩余的数据。
我知道有一个选项可以使用 HTML 格式化字段,然后仅显示文本,但是当对字段进行计数时,它仍然在字符计数中包含 HTML 文本。
任何帮助都会很棒。
谢谢 戴夫
Using Crystal Reports 11, I want to report on the number of characters within a memo field. The problem is that it is feeding through HTML from the System.
I want to remove all text that is within "<" and ">" and am having some problems doing this.
I guessed that my best way of doing this was a Replace formula, but it only seems to allow specific characters or group of characters to be replaced. I tried the following:
Replace ({Field_Name},"","")
Basically I want to be able to remove all text within the "<>" symbols to then be able to view the remaining data.
I know that there is an option to format the field with HTML which will then display only the text, but when a count is done on the field, it still includes the HTML text in the character count.
Any help wouldbe great.
Thanks
Dave
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过@一周的努力。为了尝试从我的电子邮件中删除 HTML,我决定进入系统恢复并回到我认为发生这种情况的日期(一周),瞧 - 消失了!没什么!没有 HTML!问题就这么轻松解决了。
After struggling for @ a wk. to try to remove HTML from my emails, I decided to go into system restore and went back to a date when I thought this had happened (a wk) and voila - gone! Nada! No HTML! Problem solved so easily.