BKI_DichVuMatDat.NghiepVu.f380_thay_doi_he_so_chat_luong_xls.SaveXLSX C# (CSharp) Method

SaveXLSX() private method

private SaveXLSX ( ) : void
return void
        private void SaveXLSX()
        {
            string targetPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
            string newpath = targetPath + "\\" + "Hệ số chất lượng tháng " + m_txt_chon_thang.Text + "-" + m_txt_chon_nam.Text + ".xls";
            m_grv_them_hs.ExportToXls(newpath);
            DevExpress.XtraEditors.XtraMessageBox.Show("Đã lưu file mẫu tại " + newpath);
            var process = new System.Diagnostics.Process();
            process.StartInfo.FileName = newpath;
            process.StartInfo.Verb = "Open";
            process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
            process.Start();
        }