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

TableStyles.None不生效 #54

Closed
Superllb93 opened this issue Mar 17, 2020 · 2 comments
Closed

TableStyles.None不生效 #54

Superllb93 opened this issue Mar 17, 2020 · 2 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@Superllb93
Copy link

运行demo示例,dto类:

    [ExcelExporter(Name = "学生信息", AutoFitAllColumn = true, TableStyle = "None")]
    public class Student
    { 
        /// <summary> 
        /// 姓名 
        /// </summary> 
        [ExporterHeader(DisplayName = "姓名")] 
        public string Name { get; set; } 
        /// <summary> 
        /// 年龄 
        /// </summary> 
        [ExporterHeader(DisplayName = "年龄")] 
        public int Age { get; set; }
        /// <summary> 
        /// 备注 
        /// </summary> 
        [ExporterHeader(DisplayName = "备注")]
        public string Remarks { get; set; } 
        /// <summary> 
        /// 出生日期 
        /// </summary>
        [ExporterHeader(DisplayName = "出生日期", Format = "yyyy-MM-dd")] 
        public DateTime Birthday { get; set; } 
    }

TableStyle为None时对应于TableStyles.None,但是导出的excel样式是Medium9,如下图:
image

@xin-lai xin-lai added the bug Something isn't working label Mar 17, 2020
@xin-lai
Copy link
Collaborator

xin-lai commented Mar 19, 2020

@hueifeng 跟进情况答复下。

@hueifeng
Copy link
Member

The problem arises from the underlying code of EPPlus. We will replace the underlying implementation in the future. Currently it is recommended to specify the style first.

问题产生在EPPlus底层代码,我们会在未来版本替换掉底层实现,目前建议先指定样式

@ZerekZhang ZerekZhang mentioned this issue Mar 19, 2020
hueifeng added a commit that referenced this issue Mar 20, 2020
bug fix #54 TableStyles.None不生效
xin-lai pushed a commit that referenced this issue Mar 25, 2020
- **【Nuget】版本更新到2.2.0-beta3**
- **【Excel导入】修复日期问题 [#68](#68
- **【Excel导出】添加ExcelOutputType设置,支持输出无格式的导出。[#54](#54
xin-lai pushed a commit that referenced this issue Mar 25, 2020
- **【Nuget】版本更新到2.2.0-beta3**
- **【Excel导入】修复日期问题 [#68](#68
- **【Excel导出】添加ExcelOutputType设置,支持输出无格式的导出。[#54](#54
@xin-lai xin-lai added the question Further information is requested label Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants