How to set XLSX cell width with EPPlus?

前端 未结 5 1950
孤城傲影
孤城傲影 2021-01-31 00:47

Hello I have this code where i create an xlsx file and i need to pre set the width of the xlsx sheet cells. The actual problem is that when i open the excell i need to double c

5条回答
  •  情话喂你
    2021-01-31 01:33

    You can change the default width of all columns in the worksheet by simply changing its DefaultColWidth property:

    worksheet.DefaultColWidth = 25;
    

提交回复
热议问题