Example #1
0
        void CreateMsoDrawingGroup(XlsPictureCollection pictures)
        {
            if (pictures.Count == 0)
            {
                return;
            }
            this.dggContainer = new MsoDataContainer(0x0F, 0x00, XlsConsts.MsoDggContainer);
            MsoDataOpt opt = new MsoDataOpt(0x03, 0x03);

            dggContainer.AddItem(new MsoDataDgg(0x0, 0x0, pictures.Count));
            if (pictures.Count > 0)
            {
                MsoDataContainer bStoreContainer = new MsoDataContainer(0x0F, 0x01, XlsConsts.MsoBStoreContainer);
                for (int i = 0; i < pictures.Count; i++)
                {
                    bStoreContainer.AddItem(new MsoDataBse(0x02, 0x05, pictures[i], false));
                    bStoreContainer.AddItem(new MsoDataBLIP(0x00, 0x46A, pictures[i]));
                }
                dggContainer.AddItem(bStoreContainer);
            }
            opt.AddValue(0x00BF, 0x00080008);
            opt.AddValue(0x0181, 0x08000009);
            opt.AddValue(0x01C0, 0x08000040);
            dggContainer.AddItem(opt);
            dggContainer.AddItem(new MsoDataSplitMenuColors(0x00, 0x04));
        }
Example #2
0
 public void CreateObjectHierarchy(XlsPictureCollection xlsPictures, SheetPictureCollection sheetPictures)
 {
     if (xlsPictures.Count == 0 || sheetPictures.Count == 0)
     {
         return;
     }
     CreateMsoDrawingGroup(xlsPictures);
     CreateMsoDrawing(sheetPictures);
 }