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

在 excle 使用 Dictionary<string, object> 动态导出时 能否弄个默认值 #535

Open
OxOld opened this issue Oct 8, 2023 · 0 comments

Comments

@OxOld
Copy link

OxOld commented Oct 8, 2023

Is your feature request related to a problem? Please describe.
在 excel 使用 Dictionary<string, object> 动态导出时 模版文件 列 在数据中 没有 能否弄成默认值 或者 让异常 选择性的抛出。
我这边 是有个动态表单的导出,所以 会导致 上传的模版 和 数据对应不上 就会导致异常。

例如:我的模板里面 有 【WorkUnit】字段,我的数据字典里面 没有 【WorkUnit】字段 就会抛出 【The given key 'WorkUnit' was not present in the dictionary.】 异常。

Describe the solution you'd like
不抛出异常或者选择性的抛出,或者就默认为空白也可以。

Describe alternatives you've considered
之前是直接复制源码 重新修改一下 这个判断,现在版本升级后就不好处理了

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