Style 'Heading 1' cannot be found in the stylesheet



Can you please tell me why I get this error?

I have created a new document from scratch. Whenever I try and apply a default built-in style to a praragraph, I get the error “Style ‘Heading 1’ cannot be found in the stylesheet” (except for “Normal” which works ok). I have also tried using the built in enum:

r_WordDocBuilder.ParagraphFormat.StyleName = Aspose.Word.StyleIdentifier.Heading1

Do I need to add these styles to the document? If so, is it possible to do this dynamically, and how do I do it?




Thank you for considering Aspose.

This bug will be fixed in the forthcoming release. It will be ready very soon.


We have released Aspose.Word 2.5.