tgui78 / excellibrary

Automatically exported from code.google.com/p/excellibrary
0 stars 0 forks source link

Decoding DBCELL #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Please modify the Decode method of DBCELL as it is causing error while
encoding back.
            MemoryStream stream = new MemoryStream(Data);
            BinaryReader reader = new BinaryReader(stream);
            this.FirstRowOffset = reader.ReadUInt32();
            //
            int count = (Size - 4) / 2;
            FirstCellOffsets = new List<UInt16>(); 
            for (int i = 0; i < count; i++)
            {
                UInt16 fco = reader.ReadUInt16();
                FirstCellOffsets.Add(fco);
            }

Original issue reported on code.google.com by jayakris...@gmail.com on 15 Sep 2009 at 3:21