摘要:
publicTestOne() { InitializeComponent(); SaveFileDialog();//调用打开SaveFileDialog保存对话框 } #region保存对话框 privatevoidSaveFileDialog() { //stringlocalFilePath,fileNameExt,newFileName,FilePath; SaveFileDialogs... 阅读全文
摘要:
private void ButtonBackUp_Click(object sender, System.EventArgs e) { this.Cursor = Cursors.WaitCursor; string _DBServ = Btnback1.Text; string _DBName = Btnback2.Text; string _DBUser = Btnback3.Text; s... 阅读全文
摘要:
首先请先引用:Microsoft.Office.Interop.Excel 11.0.0.0 . #region 导出excel private void ExportExcel(string fileName, DataGridView myDGV) { string saveFileName = ""; //bool fileSaved = false; SaveFileDialog save... 阅读全文