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

Ravishankar NRank #241 · 10.2K reputationPosted Jul 11, 2018, 10:51 PM EDT
chetan AllipurRank #2,527 · 554 reputationPosted Jul 11, 2018, 11:50 PM EDT
Ravishankar NRank #241 · 10.2K reputationPosted Jul 12, 2018, 1:13 AM EDT