0

How to add a custom style to a word document using the word javascript API. I tried adding the styles by insertOoxml. It is not working. I want some of my custom styles to be available for use in the word javascript API so that I can change style of documents via my add-in. Also, is it possible to create new styles programmatically?

Mohamed Shakeel
  • 361
  • 1
  • 15

1 Answers1

1

This is currently not supported but its a capability that we definitely will add in the future. You can use a custom style if already present in the document, you just do range.font.style = "Name of the style".

Juan Balmori
  • 4,898
  • 1
  • 8
  • 17