ViniciusConsultor / controlhoras

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

Error al generar Excel en Liquidacion Empleado #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
el error en la liquidacion empleados, esta dando en esta linea al generarse el 
excel
//Observaciones
                       auxdt = new DateTime(mesAct.Year, mesAct.Month, auxInt);
                       obs = datos.obtenerMotivosCambiosDiarios2(nroEmp, auxdt);
                       if (obs.Count > 0)
                       {
                           st = "";
                           foreach (MotIVOsCamBiosDiARioS m in obs)
                               st = st + "*" + m.Observaciones + "* ";
                           bufer = oSheet.get_Range(oSheet.Cells[7 + auxInt, 7], oSheet.Cells[7 + auxInt, 7]).get_Value(missing).ToString();
                           oSheet.Cells[7 + auxInt, 7] = bufer + st;                            
                       }
bufer = oSheet.get_Range(oSheet.Cells[7 + auxInt, 7], oSheet.Cells[7 + auxInt, 
7]).get_Value(missing).ToString();

Operacion generarExcel  en LiquidacionEmpleados

Original issue reported on code.google.com by juanga...@gmail.com on 10 Jun 2011 at 1:29

GoogleCodeExporter commented 8 years ago
se modificó la línea anterior para que acepte la posibilidad de que el objeto 
sea null

Original comment by jpco...@gmail.com on 17 Jun 2011 at 6:51