ViniciusConsultor / controlhoras

Automatically exported from code.google.com/p/controlhoras
1 stars 0 forks source link

Exportar a Excel - Campos booleanos #96

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Que pasos reproducen el problema?
1. Consultas -> Por Tablas
2. Seleccionar una tabla que contenga valores booleanos
3. Incluir algun valor booleanos a los campos seleccionados
4. Exportar

Cual es la salida esperada? Que resultado tuve en lugar del esperado?
La exportacion OK

Provea informacion adicional a continuación:

Original issue reported on code.google.com by juanga...@gmail.com on 15 Jul 2011 at 2:31

GoogleCodeExporter commented 8 years ago
Se modifica el Utilidades.exportToExcel

Se modifica el oRng.NumberFormat de "Si;Si;No" a "@"

else if (dgv[columna - 1, 0].ValueType == typeof(Boolean))
                    {
                        //oRng.NumberFormat = "Sí;Sí;No";
                        oRng.NumberFormat = "@";
                        oRng.Cells.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter;

                    }

Original comment by juanga...@gmail.com on 15 Jul 2011 at 3:29