Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/04/2007, 09:13
cucox
 
Fecha de Ingreso: febrero-2004
Ubicación: horcon
Mensajes: 133
Antigüedad: 21 años
Puntos: 1
problema al exportar a excel en c# aspx

HOLAAAA amigos mi problema es el siguiente cuando mando exportar a excel una serie de registros digamos 100 todo ok funciona super bien pero despues cuando son 200 o mas, EL EXCEL me manda un mensaje que no puede abrir el archivo este es mi codigo basdicamente de exportacion
PD: EL MENSAJE LO MANDA CUANDO TERMINA DE CARGAR TODA LA CONSULTA DE LA BASE DE DATOS Y SE ABRE LA VENTANA DE EXCEL , ES DECIR EL EXCEL ME MANDA ESTE MENSAJE, ADEMAS ESTUBE PROBANDO LA PAGINA SIN EXPORTACION A EXCEL Y FUNCIONA SIN NINGUN PROBLEMA AYUDA PORFAVOR

Response.Buffer = true;
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";

Response.AddHeader("Content-Disposition", "attachment;filename=Inf.xls");
Response.Charset = "UTF-8";
Response.ContentEncoding = System.Text.Encoding.Default;


LOS DATOS LOS LLENO A UNA TABLA HTML DESDE UN REPEATER BUENO ESOP
__________________
pato