EvotecIT / OfficeIMO

Fast and easy to use cross-platform .NET library that creates or modifies Microsoft Word (DocX) and later also Excel (XLSX) files without installing any software. Library is based on Open XML SDK
MIT License
280 stars 50 forks source link

Customize WordParagraphStyle #73

Open rstm-sf opened 1 year ago

rstm-sf commented 1 year ago

At the moment, some styles are hardcoded and there is no way to explicitly customize them. Also, there is no way to add own new. It would be nice to customize and add own new style

PrzemyslawKlys commented 1 year ago

I've added most built-in styles. If you have an idea on how to improve - I'm of course open.

tspattentec commented 1 year ago

I would really like this as well. I have a template document with some custom table and paragraph styles. "My Custom Table Style" for instance. It would be really nice to be able to use these same styles when adding content to the template document.

JustinRingeling commented 10 months ago

Hi I would like to use custom styles also. Currently I am trying to use this on an existing stylized Word document. The document contains named styles for paragraphs and tables and I am unable to use them. The styles are reset when configuring the default styles to reflect the the custom styles in the document.

So it would be great if we could select custom styles to be applied in an existing document or to stop the reset of the default styles.