c# 弹窗保存文件
try { this.Cursor = Cursors.WaitCursor; SaveFileDialog sfdFile = new SaveFileDialog(); string ExcelExt = cPublic.GetExcelVersion(); sfdFile.Filter = "Excel文件(*" + ExcelExt + ")|*" + ExcelExt + ""; sfdFile.FileName = "文件名" + DateTime.Now.ToString("yyyyMMdd") + ExcelExt; if (sfdFile.ShowDialog() == DialogResult.OK) { // sfd.FileName 保存路径了 } catch (Exception ex) { this.Cursor = Cursors.Default; Aukeys.MsgTool.ShowMessage(ex.Message); }