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

Free Support Forum - aspose.com

One CSS-file for more than one Word-File


is there any possible way to use one CSS-File for more than once “insertHTML”?

E.g. One CSS-file provides the format for all HTML-pages that will be inserted with builder.insertHTML().

Because I don’t wanna link the same CSS-file again and again.

Hope my question is clear enough :wink:

Thanks in advance

Hi Alexander,

Thanks for your inquiry. You can use ‘class’ attribute to apply a specific MS Word style to an inserted HTML element. E.g see the following html

This para should have MyWordStyle style.

Once you have styles in the document, you can use ‘class’ to apply styles. Could you please attach your input Word document, CSS and html here for our reference? We will then provide you more information about your query along with code.