We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Get styleID instead of Style name

I am looking to get the styleId which is stored in word document instead of styleName form paragraph.ParagraphFormat. I need this because when docx is converted to HTML the css styles are save with styleID instead of name and when the same html is converted to docx i need the original style id so i can map styles from source doc.

image.png (80.5 KB)

@cyrusdaru1 Unfortunately, currently, there is no public API to get styleId. I have created a feature request WORDSNET-24397. We will consider exposing this property to public API and let you know once it is available.