调研信息表修改
This commit is contained in:
@@ -136,7 +136,7 @@ public static class ExcelExportHelper
|
||||
#region 根据中英文 删除模板sheet
|
||||
|
||||
// 打开模板文件
|
||||
var templateFile = new FileStream(tplPath, FileMode.Open, FileAccess.Read);
|
||||
using var templateFile = new FileStream(tplPath, FileMode.Open, FileAccess.Read);
|
||||
|
||||
// 获取文件流
|
||||
var templateStream = new MemoryStream();
|
||||
@@ -161,13 +161,13 @@ public static class ExcelExportHelper
|
||||
if (removeExcelIndexList != null)
|
||||
{
|
||||
var worksheet = workbook.Worksheet(1); // 索引从1开始
|
||||
foreach (int colIndex in removeExcelIndexList.OrderByDescending(t=>t))
|
||||
foreach (int colIndex in removeExcelIndexList.OrderByDescending(t => t))
|
||||
{
|
||||
// 删除整列
|
||||
worksheet.Column(colIndex).Delete();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//中文替换项目术语
|
||||
if (data.TrialObjectNameList?.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user