Get all Styles in Office 365 Word Document
With office 365 word add-in development it is not possible to get all existing styles in a word document using word JavaScript API with as strongly type object of the API. The only way is using ooxml document. But the problem is this ooxml file size depend on the size of the word document. For an example, for 4-5 simple word paragraphs, ooxml size is nearly 13-15 pages. So it is very difficult to process styles in a large document using this ooxml. In VB and VBA, we can get all used styles through the API. So could you please consider about this request to implement get all styles through the API directly?

Lishani, thank you for your suggestions. We really appreciate it.
Listing all styles in the document is a gap in the Word API and we’re reviewing this suggestion right now. We’ll keep you posted.
Hope this helps!
Office Extensibility Team
1 comment
-
Cindy Meister commented
FWIW it's at least possible to get the styles from a document using OOXML. What's not possible is creating and modifying styles. That should have a higher priority IMO.