chetan Allipur

chetan Allipur

  • NA
  • 541
  • 167.5k

How to get current document styles from word document?

Jul 11 2018 11:54 PM
Hi
I want current styles in word document. But I am getting all word styles. Below is my code
 
foreach (Microsoft.Office.Interop.Word.Style styles in doc1.Styles)
{
if (styles.BuiltIn == true)
{
GetWordStyles.Add(styles.NameLocal);
}
else 
{
GetCustomStyles.Add(styles.NameLocal);
}
}
 
 
Please anyone help me 

Answers (3)