摘要:
publicstaticboolDataTableToExcel(System.Data.DataTabledt,stringfileName,boolshowFileDialog=false){if(showFileDialog){SaveFileDialogsaveFileDialog=newSaveFileDialog();saveFileDialog.Filter="Execlfiles(*.xls)|*.xls";saveFileDialog.FilterIndex=0;saveFileDialog.RestoreDirectory=true;saveFileDi 阅读全文