Posted 8 September 2017, 6:17 am EST
We use Farpoint spread (version 7.35.20132.1) for our windows application. One of the feature we have uses fpSpread.SaveExcel function in following way.
[csharp]
using (MemoryStream strm = new MemoryStream())
{
sheets.SaveExcel(strm, FarPoint.Excel.ExcelSaveFlags.UseOOXMLFormat);
}[/csharp]
Few of our users started getting following error from SaveExcel method intermittently.
Inner Exception
---------------
Type : System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : No open entry
Source : FarPoint.Excel
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void CloseEntry()
Stack Trace : at ICSharpCode.SharpZipLib.Zip.ZipOutputStream.CloseEntry()
at fg.a(IExcelWrite A_0, String A_1, Stream A_2, ExcelSaveFlags A_3)
at FarPoint.Excel.ExcelFileHandler.b(Stream A_0, ExcelSaveFlags A_1)
at FarPoint.Excel.ExcelFileHandler.Save(Stream stream, ExcelSaveFlags saveFlags, String password)
at ci.a(Stream A_0, ExcelSaveFlags A_1, String A_2)
at c9.a(String A_0, Stream A_1, ExcelSaveFlags A_2, ExcelWarningList A_3, String A_4)
So far we have not been able to replicate this issue on any Developer machines.
Can you please help us understand what could be the reasons of this failure ? Under what circumstances Farpoint code can fail with this exception ?
Thank you.