Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2005

Tip: Looking for answers? Try searching our database.

disabling font in MS Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jayrm100@yahoo.com - 08 Aug 2005 07:12 GMT
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
Jezebel - 08 Aug 2005 07:41 GMT
Can't be done.

> Hi,
>
[quoted text clipped - 15 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.