Hi
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for your request. This occurs because you document does not contain such style. You can use code like the following to check whether style exists:
// Get style.
Style style = doc.Styles[StyleIdentifier.SubtleEmphasis];
// Check whether style exists
if(style!=null)
{
// Do something
}
Hope this helps.
Best regards.
Thanks Alexey,
Hi
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for your request. There are a lot of styles listed in StyleIdentified enum:
They all are not required to be embedded in document. MS Word creates them when it is necessary. The main purpose of StyleIdentifier is language independence (see documentation).
Best regards.