Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/09/2006, 08:44
Matilda
 
Fecha de Ingreso: septiembre-2006
Mensajes: 2
Antigüedad: 18 años, 6 meses
Puntos: 0
Header/Footer al exportar Excel .net

Hola,

Quisiera saber si alguien pudo añadir un header y un footer al exportar a excel desde c# dentro de la siguientes lineas de codigo. Si no, cual seria otra alternativa. Gracias.

Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "UTF-8";
Response.ContentEncoding = System.Text.Encoding.Default;
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
Pnl_Items.RenderControl(htmlWrite);
this.Response.Write(stringWrite.ToString());
this.Response.End();