2012-09-05 68 views
1

場景:通過調用WorkBookDesigner.SetDataSource(DataSet)兩次添加兩個DataSet,每個DataSet都有一個CustomerTable,數據表具有不同的名稱。Aspose.Cells .NET:將6.0.1升級到7.3.1,WorkBookDesigner.SetDataSource()失敗

6.0.1:工作得很好

7.3.1:異常

試驗方法Nirvana.Reporting.Engines.Aspose.Tests.Cells.AsposeCellsEngineTests.Execute_Report_NoTemplate_TemplateTypeDesigner_FormatXLS_ReturnsEmptySpreadSheet拋出異常: 涅槃。 Reporting.Core.ReportExecutionException:執行報告'CustomerList'時發生錯誤---> System.ArgumentException:Item已被添加。重點在詞典: '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 

我怎樣才能解決?

回答

0

此問題看起來像一個迴歸,但它可能會在最新版本中解決。所以,你應該嘗試一下最新版本:Aspose.Cells for .NET 8.4.2,看看它是否有什麼不同。

注意:我在Aspose工作爲開發人員傳播者