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
289 stars 50 forks source link

WordParagraph.Style can throw an exception #236

Closed ChrisBellBO closed 3 months ago

ChrisBellBO commented 4 months ago

I have a Word document with some custom styles. When I access the Style property on a paragraph using one of those styles, an exception is thrown. Maybe the enumerated type just needs a Custom value for anything non standard?

PrzemyslawKlys commented 4 months ago

Sure, there should be Custom set, if it can't match any of known types. Later on we should probably allow some easy custom styles reading/building. Care for PR?

ChrisBellBO commented 4 months ago

Sure thing. I've not contributed to github projects before so you may need to provide some guidance as to how to do that

PrzemyslawKlys commented 4 months ago

Fork the project so that it's in your name. Once it's in your name (not EvotecIT\OfficeIMO) you simply open it in Visual Studio using button. You do changes, you commit. They get into your fork. Once you will be happy you simply open PR from your fork. As long as PR is open you can just commit changes to your fork and it will appear in the PR.