This project has moved. For the latest updates, please go here.

Lost format-information

Mar 9, 2012 at 9:38 AM


I have a problem. I open a workbook via

        public bool Open(string filename)  //Here "Before.xlsx"
            byte[] byteArray = File.ReadAllBytes(filename);
            _stream = new MemoryStream();
            _stream.Write(byteArray, 0, byteArray.Length);

            _workbook = new XLWorkbook(_stream);
            if (_workbook != null)
                return true;
            return false;

and close it, without any changes, via

        public void SaveToStream()
            if (_workbook != null)

and give it back as Byte[] to the caller.

        public byte[] GetData()
            return _stream.ToArray();

The caller write it to the new file "After.xlsx".

And here is the problem:

The cells AP57 to AQ60 lost there format-information (number).
The cells R57 to R60 don't lost the information (date).

Is this a bug? Is it my error?

I use latest Version 0.64.

You may find the files here:

Thanks for help


Mar 9, 2012 at 4:48 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.