C# .NET - Changing the Font in .cs file - Asked By karur krishna madhu on 27-Aug-13 03:00 AM

I have created a word document template and the values for that are binded dynamically using the below function
 this.FindAndReplace(WordApp, "<TempExec>"," "+ExecData[0]);
The issue is the data is binded perfectly but the font with which it is generated is in Red. i have ensured that the entire template has no red font anywhere. but the red font is coming from the string "<TempExec>". when i mention it with " " it turns into red and same font is getting applied on the word document. i tried removing < > but if i remove those then the function Find and replace wont work as they are template tags using which the data is replaced.
Is there a way where i can apply times new roman font with italic and font size 9 to this "<TempExec>" in the cs file itself or is there a way i can declare the string "<TempExec>" with out using " ".(double quotes).
Robbe Morris replied to karur krishna madhu on 27-Aug-13 07:51 AM
Look for an option to turn off spell check and grammar correction.  I think this is what is causing the issue.
karur krishna madhu replied to Robbe Morris on 28-Aug-13 04:58 AM
I have turned off spell check and grammar check . still it shows red font.