We are trying to apply a word style to a paragraph using the CSS style property mso-style-name that is used by word, but it doesn’t work. Here’s the code:
Document document = new Document();
DocumentBuilder builder2 = new DocumentBuilder(document);
builder2.insertHtml("<p style='mso-style-name: \"Heading 1\"'>Test</p>");
document.save("result.docx");
Is this not supported? Furthermore, is there a list of CSS properties that Aspose.Words supports?
Unfortunately, Aspose.Words does not support the requested feature at the moment. However, we have logged this feature request as WORDSNET-18975 in our issue tracking system. You will be notified via this forum thread once this feature is available.