المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Count the bold letters in ms word document



C# Programming
07-28-2009, 02:30 PM
I'm working on windows application.I need to find out the number of bold letters available in the Word document.
I have used name space Microsoft.Office.Interop.Word to read the word document and also tried with some of the properties like Selection,Range to find whether the character is in bold or not but no result.

I have read each character by reading the content of document and checking its format but here while reading the text the character is missing its Format.


I have also tried by converting it into html format and tried by using HTML Element Collection but it is unable to read/recognize the bold tag.

Please give the solution to count the bold letters of word document.

Thanks