场景:通过两次调用WorkBookDesigner.SetDataSource(DataSet)添加两个DataSet,每个DataSet都有一个客户的DataTable,DataTable有不同的名字。
6.0.1:工作正常
7.3.1:异常
测试方法 Nirvana.Reporting.Engines.Aspose.Tests.Cells.AsposeCellsEngineTests.Execute_Report_NoTemplate_TemplateTypeDesigner_FormatXLS_ReturnsEmptySpreadSheet 抛出异常:Nirvana.Reporting.Core.ReportExecutionException:执行报告“CustomerList”时发生错误---> System.ArgumentException:已添加项目。在字典中键入:'PHONENUMBERS' 正在添加的键:'PHONENUMBERS'
System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
System.Collections.Hashtable.Add(Object key, Object value)
Aspose.Cells.WorkbookDesigner.SetDataSource(DataTable dataTable)
Nirvana.Reporting.Engines.Aspose.Cells.AsposeCellsEngine.AssignDataSourcesToWorkbookDesigner(IReport report, WorkbookDesigner designer) in C:\Workspaces\ja38524\KBC.ServiceOrganisation\Framework\Trunk\Source\Nirvana.Solution\Nirvana.Reporting.Engines.Aspose\Cells\AsposeCellsEngine.cs: line 344
Nirvana.Reporting.Engines.Aspose.Cells.AsposeCellsEngine.ExecuteDesignerReport(IReport report) in C:\Workspaces\ja38524\KBC.ServiceOrganisation\Framework\Trunk\Source\Nirvana.Solution\Nirvana.Reporting.Engines.Aspose\Cells\AsposeCellsEngine.cs: line 298
Nirvana.Reporting.Engines.Aspose.Cells.AsposeCellsEngine.Execute(Guid reportInstanceId, IReport report) in C:\Workspaces\ja38524\KBC.ServiceOrganisation\Framework\Trunk\Source\Nirvana.Solution\Nirvana.Reporting.Engines.Aspose\Cells\AsposeCellsEngine.cs: line 103
Nirvana.Reporting.Engines.Aspose.Cells.AsposeCellsEngine.Execute(Guid reportInstanceId, IReport report) in C:\Workspaces\ja38524\KBC.ServiceOrganisation\Framework\Trunk\Source\Nirvana.Solution\Nirvana.Reporting.Engines.Aspose\Cells\AsposeCellsEngine.cs: line 120
Nirvana.Reporting.Engines.Aspose.Tests.Cells.AsposeCellsEngineTests.Execute_Report_NoTemplate_TemplateTypeDesigner_FormatXLS_ReturnsEmptySpreadSheet() in C:\Workspaces\ja38524\KBC.ServiceOrganisation\Framework\Trunk\Source\Nirvana.Solution\Nirvana.Reporting.Engines.Aspose.Tests\Cells\AsposeCellsEngineTest.cs: line 188
我该如何解决?