예제 #1
0
 private void IdentifyVbaProjectObject()
 {
     try
     {
         VBAInfoContainer vbaInfo = this.DocumentRecord.DocInfoListContainer.FirstChildWithType <VBAInfoContainer>();
         this.VbaProject = GetPersistObject <ExOleObjStgAtom>(vbaInfo.objStgDataRef);
     }
     catch (Exception e)
     {
     }
 }
예제 #2
0
 private void IdentifyOlePersistObjects()
 {
     foreach (ExObjListContainer listcontainer in this.DocumentRecord.AllChildrenWithType <ExObjListContainer>())
     {
         foreach (ExOleEmbedContainer container in listcontainer.AllChildrenWithType <ExOleEmbedContainer>())
         {
             ExOleObjAtom atom = container.FirstChildWithType <ExOleObjAtom>();
             if (atom != null)
             {
                 ExOleObjStgAtom stgAtom = this.GetPersistObject <ExOleObjStgAtom>(atom.persistIdRef);
                 container.stgAtom = stgAtom;
                 this.OleObjects.Add(atom.exObjId, container);
             }
         }
     }
 }