日期:2014-05-17 浏览次数:21050 次
private string ReplaceLowOrderASCIICharacters(string tmp)
{
StringBuilder info = new StringBuilder();
foreach (char cc in tmp)
{
int ss = (int)cc;
if (((ss >= 0) && (ss <= 8))
------解决方案--------------------
((ss >= 11) && (ss <= 12))
------解决方案--------------------
((ss >= 14) && (ss <= 32)))
info.AppendFormat(" ", ss);
else info.Append(cc);
}
return info.ToString();
}
Range valueCell = null;
valueCell = (Range)sheet.Cells[i, j];//i,j为所在单元格的行与列
valueCell.NumberFormatLocal = "@";