EPPlusSoftware / EPPlus

EPPlus-Excel spreadsheets for .NET
https://epplussoftware.com
Other
1.82k stars 277 forks source link

Errore when using worksheet.Cells.AutoFitColumns(); #1595

Open AndreaRinaudo opened 1 month ago

AndreaRinaudo commented 1 month ago

EPPlus usage

Noncommercial use

Environment

Windows

Epplus version

7.3.1

Spreadsheet application

Excel

Description

When I run the command

worksheet.Cells.AutoFitColumns();

I get the error:

"Value of '0' is not valid for 'emSize'. 'emSize' should be greater than 0 and less than or equal to System.Single.MaxValue. Parameter name: emSize"

swmal commented 1 month ago

Please upload a workbook or provide code that helps us to replicate this issue.