Skip to content

Commit c84b520

Browse files
authored
Merge pull request #559 from 1257960069/patch-1
Update ExcelTableCollection.cs
2 parents 665d2cc + 6510bca commit c84b520

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/EPPlus/EPPlus/Table/ExcelTableCollection.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ public ExcelTable Add(ExcelAddressBase Range, string Name)
103103
}
104104
return Add(new ExcelTable(_ws, Range, Name, _ws.Workbook._nextTableID));
105105
}
106-
106+
public static bool IsValidateTableName { get; set; } = true;
107107
private void ValidateTableName(string Name)
108108
{
109+
if (!IsValidateTableName) return;
109110
if (string.IsNullOrEmpty(Name))
110111
{
111112
throw new ArgumentException("Tablename is null or empty");

0 commit comments

Comments
 (0)