Skip to content

datatable类型数据导出excel服务数值型默认是文本方式保存,字段标题重复会报错 #3243

@densen2014

Description

@densen2014

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

  1. 数值型默认是文本方式
  2. 导出提示列名已存在

DA{}SN{VFV)8VOIRDRWCO

image

直接使用miniexcel导出没这两个问题, 所以应该是数据转换部分需要特殊处理一下
MiniExcelLibs.MiniExcel.SaveAs("分店类别销售.xlsx", dt,overwriteFile:true);

image

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions