sheetname manms
This commit is contained in:
parent
9137824362
commit
61709a7774
|
|
@ -64,6 +64,8 @@ public static class Responses
|
||||||
//limit the name to 31 characters
|
//limit the name to 31 characters
|
||||||
sheetName = name.Length > 31 ? name.Substring(0, 31) : name;
|
sheetName = name.Length > 31 ? name.Substring(0, 31) : name;
|
||||||
}
|
}
|
||||||
|
//make sure sheet is only alphanumeric
|
||||||
|
sheetName = new string(sheetName.Where(char.IsLetterOrDigit).ToArray());
|
||||||
|
|
||||||
var notebook = new XLWorkbook();
|
var notebook = new XLWorkbook();
|
||||||
var sheet = notebook.Worksheets.Add(sheetName);
|
var sheet = notebook.Worksheets.Add(sheetName);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user