private void IdentifyVbaProjectObject() { try { VBAInfoContainer vbaInfo = this.DocumentRecord.DocInfoListContainer.FirstChildWithType <VBAInfoContainer>(); this.VbaProject = GetPersistObject <ExOleObjStgAtom>(vbaInfo.objStgDataRef); } catch (Exception e) { } }
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); } } } }