donnytian / Npoi.Mapper

Use this tool to import or export data with Excel file. The tool is a convention based mapper between strong typed object and Excel data via NPOI.
MIT License
589 stars 114 forks source link

如何在用Npoi.Mapper导出数据的时候,设置表格自定义样式呢? #121

Closed nextuntil closed 1 year ago

nextuntil commented 1 year ago

RT。 比如现在希望在导出的时候实现以下样式控制: 1、表头加背景色,列名居中,字体加粗; 2、数据行斑马纹背景色处理; 3、数据列的宽度自动计算自适应;

donnytian commented 1 year ago

请操作mapper.Workbook 属性来设置样式, 具体的操作属于npoi的范畴, mapper主要聚焦在数据操作上.

nextuntil commented 1 year ago

3Q,已按回复方式处理完成。