I am getting the following exception when I execute SaveToStream method of the workbook, any ideas?
Thanks
Scott
System.ArgumentException was unhandled
Message=An item with the same key has already been added.
Source=mscorlib
StackTrace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Spire.Xls.Core.Spreadsheet.Collections.XlsWorkbookObjectsCollection.0(spr4940 A_0)
at Spire.Xls.Core.Spreadsheet.Collections.XlsWorksheetsCollection.1(IWorksheet A_0)
at Spire.Xls.Core.Spreadsheet.Collections.XlsWorksheetsCollection.Create()
at Spire.Xls.Workbook.0()
at Spire.Xls.Workbook.SaveToStream(Stream Stream, FileFormat fileFormat)
at XmlExcelBuilder.WorkbookBuilderSpire.createWorkbook() in c:\Users\sdubose\Documents\_My_Documents\VirtusCode\Utilities\XmlExcelBuilder\XmlExcelBuilder\WorkbookBuilderSpire.cs:line 35
at XmlExcelBuilder.ExcelBuilder.CreateWorkbook() in c:\Users\sdubose\Documents\_My_Documents\VirtusCode\Utilities\XmlExcelBuilder\XmlExcelBuilder\ExcelBuilder.cs:line 114
at XmlTester.Program.Main(String[] args) in c:\Users\sdubose\Documents\_My_Documents\VirtusCode\Utilities\XmlExcelBuilder\XmlTester\Program.cs:line 58
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: