开发者

Content Controls not accepting <,>

Currently I am working on MS Word 2007 Addin.I am getting Problem with one custom control.

The ContentControl is having multiline property to true.it is accepting values from the database. if any 开发者_运维百科database value is having special characters like <,> the content control will stop showing the data.

Suppose the data in the database is Male, Female, Children(<5), Children(>10), The content control is accepting only upto Male, Female, Children(.

For other data like strings, numeric data it is working fine.

Please Help me in solving this issue.


I am not at all familiar with the Office addins but maybe it uses some XML or XAML (which is XML-based) strategy.

In this case XML escape characters or encodings might help.

Try &gt; for > and &lt; for <.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜