Skip to content

TableStyles.None不生效 #54

Description

@Superllb93

运行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

Activity

  1. xin-lai commented on Mar 19, 2020

    @xin-lai
    Collaborator

    @hueifeng 跟进情况答复下。

  2. hueifeng commented on Mar 19, 2020

    @hueifeng
    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底层代码,我们会在未来版本替换掉底层实现,目前建议先指定样式

  3. added a commit that references this issue on Mar 20, 2020
    1c120a8
  4. added a commit that references this issue on Mar 25, 2020
  5. added a commit that references this issue on Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions