Skip to content

V3.14.x 修复xlsx表格DDE问题#8582

Open
elizabevil wants to merge 1 commit intoTencentBlueKing:v3.14.xfrom
elizabevil:v3.14.x-dde
Open

V3.14.x 修复xlsx表格DDE问题#8582
elizabevil wants to merge 1 commit intoTencentBlueKing:v3.14.xfrom
elizabevil:v3.14.x-dde

Conversation

@elizabevil
Copy link
Contributor

修复的问题:

  • 导出Excel xlsx表格DDE问题
    ###方案
    1.xlsx 根据字段类型指定单元格格式
    2.特殊字符 '=', '+', '-', '@' 前添加 '

@elizabevil elizabevil force-pushed the v3.14.x-dde branch 2 times, most recently from 140534d to bb56f56 Compare December 29, 2025 03:37
@elizabevil elizabevil changed the title V3.14.x dde V3.14.x 修复xlsx表格DDE问题 Jan 14, 2026
@elizabevil elizabevil force-pushed the v3.14.x-dde branch 3 times, most recently from e34605c to 7167ea2 Compare January 28, 2026 01:52
@elizabevil elizabevil force-pushed the v3.14.x-dde branch 2 times, most recently from a30d5ac to d6dbb00 Compare March 9, 2026 09:36
}
if err = t.GetExcel().AddValidation(t.GetObjID(),
&excel.ValidationParam{Type: excel.Bool, Sqref: sqref, Option: property.Name}); err != nil {
&excel.ValidationParam{Type: excel.Bool, Sqref: sqref, Option: HandleDDE(property.Name)}); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bool类型的Option没看到有使用的地方,可以去掉

Copy link
Contributor Author

@elizabevil elizabevil Mar 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处是对property.Name进行处理
创建字段名时 并没有限制不以特殊字符(如=)开头
此时导出xlsx文件仍会有DDE问题

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你自己看一下这个参数的逻辑,这个参数根本就没有用,直接删掉,不要做多余的改动

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

Successfully merging this pull request may close these issues.

3 participants