private void BGWorker_DoWork(object sender, DoWorkEventArgs e) { System.Data.DataTable dt = M.Colindante.MainData.ConvertToDataTable(); dt.ToExcel(Path); }