/// <summary> /// Отфильтровываем недо символы /// </summary> /// <param name="e"></param> /// <param name="value"></param> void FilteringString(CellExportedEventArgs e, string value) { if (e == null || e.Field == null) { return; } switch (e.Field.Name) { case "StringData": value = FileAdapter.RemoveBadChar(value, 1024, " "); break; default: return; } var cell = e.CurrentWorksheet.Rows[e.CurrentRowIndex].Cells[e.CurrentColumnIndex]; cell.Value = value; }