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

Lost format-information

Mar 9, 2012 at 10:38 AM

Hallo,

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)
                _workbook.Save();
        }

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:

http://dl.dropbox.com/u/11418288/Before.xlsx
http://dl.dropbox.com/u/11418288/After.xlsx

Thanks for help

Rainer

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