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

Add RepeatHeaderRowAtTheTopOfEachPage to Tables #231

Closed PrzemyslawKlys closed 5 months ago

PrzemyslawKlys commented 5 months ago

This PR resolves:

WordTable wordTable = document.AddTable(4, 4, WordTableStyle.TableNormal);
wordTable.RepeatHeaderRowAtTheTopOfEachPage = true;
wordTable.Rows[0].Cells[0].Paragraphs[0].Text = "Test 1";
wordTable.Rows[1].Cells[0].Paragraphs[0].Text = "Test 2";
wordTable.Rows[2].Cells[0].Paragraphs[0].Text = "Test 3";
wordTable.Rows[3].Cells[0].Paragraphs[0].Text = "Test 4";