private void toolStripMenuItem_Excel_Click(object sender, EventArgs e) { SaveFileDialog save = new SaveFileDialog() { Filter = "Microsoft Excel Files (*.xlsx)|*.xlsx", FileName = "SavedDocument" }; if (save.ShowDialog() == DialogResult.OK) { string ext = System.IO.Path.GetFullPath(save.FileName); sql.ExportExcel2007(ext, table_DSHuyen); } }