예제 #1
0
        public void GetTablesCount()
        {
            using (var doc = WordprocessingDocument.Open(TemplatePath, false))
            {
                var tables = new WordDocumentTables(doc);

                Assert.AreNotEqual(tables.Count, 0);
            }
        }
예제 #2
0
        public void TableExists()
        {
            using (var doc = WordprocessingDocument.Open(TemplatePath, false))
            {
                var tables = new WordDocumentTables(doc);

                Assert.IsTrue(tables.Exists("Table1"));
            }
        }
예제 #3
0
        public void CanSelectTable()
        {
            using (var doc = WordprocessingDocument.Open(TemplatePath, false))
            {
                var tables = new WordDocumentTables(doc);
                var tlb    = tables.Item("Table1");

                Assert.IsNotNull(tlb);
            }
        }
예제 #4
0
 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();
 }