public void GetTablesCount() { using (var doc = WordprocessingDocument.Open(TemplatePath, false)) { var tables = new WordDocumentTables(doc); Assert.AreNotEqual(tables.Count, 0); } }
public void TableExists() { using (var doc = WordprocessingDocument.Open(TemplatePath, false)) { var tables = new WordDocumentTables(doc); Assert.IsTrue(tables.Exists("Table1")); } }
public void CanSelectTable() { using (var doc = WordprocessingDocument.Open(TemplatePath, false)) { var tables = new WordDocumentTables(doc); var tlb = tables.Item("Table1"); Assert.IsNotNull(tlb); } }
public override void ProcessDocument() { CheckForInitialization(); Doc = WordprocessingDocument.Open(MemStream, true); InnerDoc = (WordprocessingDocument)Doc; Bookmarks = new WordDocumentBookmarks(this); Tables = new WordDocumentTables(this); Footers = new WordDocumentFooters(this); Headers = new WordDocumentHeaders(this); PageEnumerator = new WordDocumentPageEnumerator(); }