2021
01-13
01-13
C#中DataGridView导出Excel的两种方法
第一种是用数据流导出:#regionSaveFileDialogsaveFileDialog=newSaveFileDialog();saveFileDialog.Filter="Execlfiles(*.xls)|*.xls";saveFileDialog.FilterIndex=0;saveFileDialog.RestoreDirectory=true;saveFileDialog.CreatePrompt=true;saveFileDialog.Title="ExportExcelFile";saveFileDialog.ShowDialog();if(saveFileDialog.FileName=="")r...
继续阅读 >