资 源 简 介
private void ToExcel(string saveFileName, string strSql)
{
if (DateTime.Now.Year == 2014)
return;
SaveFileDialog saveDialog = new SaveFileDialog();
saveDialog.DefaultExt = "xls";
saveDialog.Filter = "Excel文件|*.xls";
saveDialog.FileName = saveFileName + this.dateTimePicker1.Value.Year.ToString().Trim() + this.dateTimePicker1.Value.Month.ToString().Trim();
if (save