【问题标题】:NPOI. Expand width of excel file when it opens非营利组织。打开时扩展excel文件的宽度
【发布时间】:2018-04-10 12:43:23
【问题描述】:

你能解释一下吗,我使用 npoi 从数据表制作 excel 文件。当文件打开到标题内容长度时,我可以扩展列吗?

 using (FileStream fs = System.IO.File.Create(FileName))
        {
            workbook.Write(fs);
 }

【问题讨论】:

标签: c# excel npoi


【解决方案1】:

请尝试 AutoSizeColumnAutosize 设置为所有列。

mySheet.AutoSizeColumn(columnIndex)

请检查

“AutoSize” to Excel sheet column? (NPOI)

'autosize' in Excel documents created with NPOI?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-14
    • 2016-10-16
    • 2020-12-12
    • 2015-07-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多