예제 #1
0
        internal void Save(MemoryStream ms)
        {
            var doc = new CompoundDocumentFile();

            WriteStorageAndStreams(Storage, doc.RootItem);
            doc.Write(ms);
        }
예제 #2
0
        public void ReadEncLong()
        {
            var doc = File.ReadAllBytes(@"c:\temp\EncrDocRead.xlsx");
            var cd  = new CompoundDocumentFile(doc);
            var ms  = new MemoryStream();

            cd.Write(ms);

            File.WriteAllBytes(@"c:\temp\vba.xlsx", ms.ToArray());
        }
예제 #3
0
        public void Read()
        {
            //var doc = File.ReadAllBytes(@"c:\temp\vbaProject.bin");
            var doc = File.ReadAllBytes(@"c:\temp\vba.bin");
            var cd  = new CompoundDocumentFile(doc);
            var ms  = new MemoryStream();

            cd.Write(ms);
            printitems(cd.RootItem);
            File.WriteAllBytes(@"c:\temp\vba.bin", ms.ToArray());
        }