Example #1
0
        public override void Write(XlsStream stream)
        {
            MsoDggRec rec = new MsoDggRec();

            rec.maxSpId               = Convert.ToUInt32(XlsConsts.MsoSpId + picsInSheets);
            rec.idClustCount          = 2;
            rec.shapesSaved           = Convert.ToUInt32(picsInSheets + 1);
            rec.drawingsSaved         = 1;
            rec.idClust.sGOwningSpIds = 1;
            rec.idClust.spIdsUsed     = Convert.ToUInt32(picsInSheets + 1);
            WriteMsoHeader(XlsConsts.MsoDgg, DataSize, stream);
            stream.Write(rec.maxSpId);
            stream.Write(rec.idClustCount);
            stream.Write(rec.shapesSaved);
            stream.Write(rec.drawingsSaved);
            stream.Write(rec.idClust.sGOwningSpIds);
            stream.Write(rec.idClust.spIdsUsed);
        }
Example #2
0
 protected override int GetSize()
 {
     return(MsoDggRec.Size() + MsoHeader.Size());
 }