From 4bccde60a7c19ae15e2ec36bfd54b368c12e0e79 Mon Sep 17 00:00:00 2001
From: kyy <3283105747@qq.com>
Date: 星期四, 27 十一月 2025 11:10:56 +0800
Subject: [PATCH] 优化iqc导出报错:The maximum column width for an individual cellis 255 characters.

---
 WebApi/Gs.Toolbox/ExcelHelper.cs |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/WebApi/Gs.Toolbox/ExcelHelper.cs b/WebApi/Gs.Toolbox/ExcelHelper.cs
index b654eb7..dccf8b5 100644
--- a/WebApi/Gs.Toolbox/ExcelHelper.cs
+++ b/WebApi/Gs.Toolbox/ExcelHelper.cs
@@ -222,8 +222,7 @@
             headerRow.CreateCell(column.Ordinal)
                 .SetCellValue(column.ColumnName);
             headerRow.GetCell(column.Ordinal).CellStyle = headStyle;
-            sheet.SetColumnWidth(column.Ordinal,
-                (arrColWidth[column.Ordinal] + 6) * 256);
+           // sheet.SetColumnWidth(column.Ordinal,(arrColWidth[column.Ordinal] + 6) * 256);
         }
 
         //sheet.SetAutoFilter(new CellRangeAddress(0, 0, 0, dtSource.Columns.Count - 1)); //棣栬绛涢��

--
Gitblit v1.9.3