This project is read-only.

"Sequence contains no elements" while SpreadsheetWriter.Save()


My code is the following:
documentStream is a stream based on BUG.xlsx.
            SpreadsheetDocument document = SpreadsheetDocument.Open(documentStream, true);
            WorksheetPart worksheetPart = SpreadsheetReader.GetWorksheetPartByName(document, "ОТЧЕТ");
            WorksheetWriter writer = new WorksheetWriter(document, worksheetPart); 
            writer.PasteText("B6", "Hello World");
            //Save to the memory stream 
Right at the moment of calling of SpreadsheetWriter.Save(document) I get equence contains no elements" exception.

file attachments


punkck wrote May 12, 2014 at 2:11 AM

can someone please solve this issue ?
I'am trying to solve if someone already has post it.

dwthomson wrote Jul 21, 2014 at 9:14 PM

Did you figure this out? I have exactly the same error.