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.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.