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

            WriteStorageAndStreams(Storage, doc.RootItem);
            doc.Write(ms);
        }
Beispiel #2
0
 internal void Read(MemoryStream ms)
 {
     using (var doc = new CompoundDocumentFile(ms))
     {
         Storage = new StoragePart();
         GetStorageAndStreams(Storage, doc.RootItem);
     }
 }
Beispiel #3
0
 internal void Read(FileInfo fi)
 {
     using (var doc = new CompoundDocumentFile(fi, tempFolder))
     {
         Storage = new StoragePart();
         GetStorageAndStreams(Storage, doc.RootItem);
     }
 }
Beispiel #4
0
 internal static bool IsCompoundDocument(MemoryStream ms)
 {
     return(CompoundDocumentFile.IsCompoundDocument(ms));
 }
Beispiel #5
0
 internal static bool IsCompoundDocument(FileInfo fi)
 {
     return(CompoundDocumentFile.IsCompoundDocument(fi));
 }