public static void AddSimpleTable() { WordDocument document = new WordDocument(); WordDocumentBuilder builder = new WordDocumentBuilder(document); builder.TableState.Indent = 100; Paragraph tableTitle = builder.InsertParagraph(); tableTitle.TextAlignment = Alignment.Center; builder.InsertLine("Simple Table Title"); Table table = builder.InsertTable(); table = CreateSimpleTable(table); WordFile wordFile = new WordFile(); using (var stream = File.OpenWrite("AddSimpleTable.docx")) { wordFile.Export(document, stream); } }