Exemple #1
0
        public void TestRelationOrder()
        {
            OPCPackage pkg = PackageHelper.Open(POIDataSamples.GetDocumentInstance().OpenResourceAsStream("WordWithAttachments.docx"));
            OPCParser  doc = new OPCParser(pkg);

            doc.Parse(new TestFactory());

            foreach (POIXMLDocumentPart rel in doc.GetRelations())
            {
                //TODO finish me
            }
        }
Exemple #2
0
        public void TestRelationOrder()
        {
            POIDataSamples pds = POIDataSamples.GetDocumentInstance();
            OPCPackage     pkg = PackageHelper.Open(pds.OpenResourceAsStream("WordWithAttachments.docx"));
            OPCParser      doc = new OPCParser(pkg);

            try
            {
                doc.Parse(new TestFactory());

                foreach (POIXMLDocumentPart rel in doc.GetRelations())
                {
                    //TODO finish me
                    Assert.IsNotNull(rel);
                }
            }
            finally
            {
                doc.Close();
            }
        }
        public void TestRelationOrder()
        {
            OPCPackage pkg = PackageHelper.Open(POIDataSamples.GetDocumentInstance().OpenResourceAsStream("WordWithAttachments.docx"));
            OPCParser doc = new OPCParser(pkg);
            doc.Parse(new TestFactory());

            foreach (POIXMLDocumentPart rel in doc.GetRelations())
            {
                //TODO finish me
                Assert.IsNotNull(rel);
            }

        }