Skip to content

ContentControl in MS-word 2007 Addin is not accepting Special Characters like <,>

K S Reddi Prasad

Asked May 27, 2011, 4:57 AM EDT1 answer
Share
LinkedInX

Hi all,

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.


Thanks,

K.S.R. Prasad.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Suthish Nair
    0
     Try encoding (Server.HTMLEncode Method): Male, Female, Children(<5), Children(>10)

     or replace "< >" with "< >".
    0