disabling font in MS Word

J

jayrm100

Hi,

I can set the font style and font size in my c# code using the
following statements

this.Content.Font.Bold = (int)FontStyle.Regular

this.content.font.size=25

When I enter the above code in MyDocument.cs and run the project, the
text I enter will be in bold and size 25 at runtime.But I can very well
undo this bold and change the size of the text in word.

But my requirement is that this change of font and size should be
disabled in word so that it remains the way it was set in the code

Can someone help me with this??

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top