I am trying to highlight form fields in my Word document and it's not working. Below is my code snipets. Is there anything else I need to do?
field(DocumentFieldName).Font.Shading.ForegroundPatternColor = System.Drawing.Color.Yellow
field(DocumentFieldName).Font.Shading.Texture = TextureIndex.TextureSolid
Basically, our users want the form field to be highlighted yellow if data does not exist. I tried highlight and background property and still did not work. If I used the document builder object then it works fine, however, I need form field hightlighted, not text. Can you help? Thanks.