Skip to content

AutoSizeColumn only resizes the second column #1663

@SDNA-ALP

Description

@SDNA-ALP

NPOI Version

2.7.5

File Type

  • [ x] XLSX
  • XLS
  • DOCX
  • XLSM
  • OTHER

Upload the Excel File

Doesn't matter

Reproduce Steps

  1. Open a workbook using .NET Framework 4.8 and NPOI version 2.7.5.
  2. Call void AutoSizeColumn(int column) on all columns.
  3. Save workbook using void Write(Stream stream, bool leaveOpen = false);
  4. Open Excel file

Issue Description

Only the second column is resized; all other columns in all tested files remain unchanged.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions