Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多Sheet导出时,若某一个数据源集合无数据是会报 Tablename is not unique #530

Open
kasugaharu opened this issue Sep 11, 2023 · 0 comments

Comments

@kasugaharu
Copy link
Contributor

Expected behaviour

	var exportResult = await ExcelExporterHelper
			.Append(points, "物探点号表")
			.SeparateBySheet()
			.Append(lines, "管线点调查表")
			.ExportAppendDataAsByteArray();

lines 的Count==0时

Actual behaviour

Tablename is not unique

在 OfficeOpenXml.Table.ExcelTableCollection.Add(ExcelAddressBase Range, String Name)
在 Magicodes.ExporterAndImporter.Excel.Utility.ExportHelper1.AddHeader() 在 Magicodes.ExporterAndImporter.Excel.Utility.ExportHelper1.AddHeaderAndStyles()
在 Magicodes.ExporterAndImporter.Excel.Utility.ExportHelper1.Export(ICollection1 dataItems)
在 Magicodes.ExporterAndImporter.Excel.ExcelExporter.Append[T](ICollection1 dataItems, String sheetName) 在 ProjectS.GIS.Api.Controllers.MappingController.<ExportMapProject>d__25.MoveNext() 在 D:\Code\JomonTFS\ProjectS\src\GIS\ProjectS.GIS.Api\Controllers\MappingController.cs 中: 第 257 行 在 Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.<Execute>d__0.MoveNext() 在 System.Threading.Tasks.ValueTask1.get_Result()
在 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<g__Awaited|12_0>d.MoveNext()
在 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<g__Awaited|10_0>d.MoveNext()
在 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
在 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
在 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<g__Awaited|13_0>d.MoveNext()
在 Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<g__Awaited|26_0>d.MoveNext()

I'm seeing this behaviour on

Magicodes.IE.Excel

package versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant