Esempio n. 1
0
        private bool ProcessOle2(HWPFDocument doc, CharacterRun characterRun,
                                 XmlElement block)
        {
            Entry entry = doc.GetObjectsPool().GetObjectById("_" + characterRun.GetPicOffset());

            if (entry == null)
            {
                logger.Log(POILogger.WARN, "Referenced OLE2 object '", (characterRun.GetPicOffset()).ToString(), "' not found in ObjectPool");
                return(false);
            }

            try
            {
                return(ProcessOle2(doc, block, entry));
            }
            catch (Exception exc)
            {
                logger.Log(POILogger.WARN,
                           "Unable to convert internal OLE2 object '", (characterRun.GetPicOffset()).ToString(), "': ", exc, exc);
                return(false);
            }
        }