Exemple #1
0
 private void tsbtnExportUsuarios_Click_1(object sender, EventArgs e)
 {
     try
     {
         if (DgvUsuarios.RowCount > 0)
         {
             ObjFunciones.ExportarDataGridViewExcel(ref DgvUsuarios, true, true);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Exemple #2
0
 private void tsbtnExportar_Click(object sender, EventArgs e)
 {
     try
     {
         if (DgvPerfilUsuario.RowCount > 0)
         {
             ClsFunciones objFunciones = new ClsFunciones();
             objFunciones.ExportarDataGridViewExcel(ref DgvPerfilUsuario, true, true);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }