Skip to content

TableStyles.None不生效 #54

Closed
Closed
@Superllb93

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

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