C# 保存文件
2021-02-03 00:13
标签:xls filename return code dialog ogre dir ogr index C# 保存文件 标签:xls filename return code dialog ogre dir ogr index 原文地址:https://www.cnblogs.com/yinmu/p/11525518.htmlSaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "Excel表格(*.xlsx)|*.xlsx";
sfd.FilterIndex = 1;
sfd.RestoreDirectory = true;
if (sfd.ShowDialog() == DialogResult.OK)
{
MessageBox.Show(sfd.FileName.ToString());
}
else
{
MessageBox.Show("取消保存");
return;
}