Browse Source

取消Excel导出时的自动行高和列宽行为

master
wanggang 1 year ago
parent
commit
5db0df8886
  1. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

6
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

@ -823,9 +823,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
ws.RangeUsed().Style.Border.RightBorderColor = ws.RangeUsed().Style.Border.RightBorderColor =
ws.RangeUsed().Style.Border.BottomBorderColor = ws.RangeUsed().Style.Border.BottomBorderColor =
ws.RangeUsed().Style.Border.LeftBorderColor = XLColor.Black; ws.RangeUsed().Style.Border.LeftBorderColor = XLColor.Black;
ws.RangeUsed().SetAutoFilter(); //ws.RangeUsed().SetAutoFilter();
ws.ColumnsUsed().AdjustToContents(); //ws.ColumnsUsed().AdjustToContents();
ws.RowsUsed().AdjustToContents(); //ws.RowsUsed().AdjustToContents();
} }
private static void SetCell<TExportModel>(TExportModel? model, IXLCell cell, PropertyInfo property) private static void SetCell<TExportModel>(TExportModel? model, IXLCell cell, PropertyInfo property)

Loading…
Cancel
Save