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
279 stars 49 forks source link

Add paragraphs property to start on a new page #98

Closed byteSamurai closed 1 year ago

byteSamurai commented 1 year ago

Basically, this is implemented:

image

This way, we can move paragraphs to dedicated pages in a more lean approach

byteSamurai commented 1 year ago

Also I simplified the csproj file here. Working also in Windows, I understand an entry will be added once you move the file to your project using the Solution Manager. However VSCode users have a hard time here, so I tend to keep it simple :)

PrzemyslawKlys commented 1 year ago

Would you think doing AddParagraph("Text", $true) or similar wouldn't make sense?

byteSamurai commented 1 year ago

No. It's a property of a paragraph and we should treat it like that.