Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

repeater to excel

4 views
Skip to first unread message

Fran

unread,
May 13, 2009, 4:26:01 AM5/13/09
to
Hello, within an asp.net application (VS2005) I'm trying to make a repeater
control to Excel (2003). The operating system of my computer is windows2000.

I use the code (c #), where the name of the repeater
"rptIntegracionesEnVuelo" flawless and having previously loaded page is the
following:

Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/vnd.ms-excel";
Response.ContentEncoding = System.Text.Encoding.UTF7;
Response.AddHeader("content-disposition",
"attachment;filename=integraciones_en_vuelo.xls");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
this.EnableViewState = false;

System.Globalization.CultureInfo lenguajeES = new
System.Globalization.CultureInfo("ES-es");
System.IO.StringWriter oStringWriter = new
System.IO.StringWriter(lenguajeES);
System.Web.UI.HtmlTextWriter oHtmlTextWriter = new
System.Web.UI.HtmlTextWriter(oStringWriter);

this.rptIntegracionesEnVuelo.RenderControl(oHtmlTextWriter);
Response.Write(oStringWriter.ToString());
Response.End();
--------------------------------------------------------------------------------------
The problem is that it opens the Excel cuandio I do not see the data, but
this style of code:

+ADw-tr
id+AD0AIg-rptIntegracionesEnVuelo+AF8-ctl01+AF8-FilaImpar+ACI-
class+AD0AIg-fila+AF8-impar+ACIAPg-
+ADw-td width+AD0AIg-17+ACUAIgA+-
+ADw-span
id+AD0AIg-rptIntegracionesEnVuelo+AF8-ctl01+AF8-lblNumeros+ACI-
title+AD0AIg-123456789+ACIAPg-123456789+ADw-/span+AD4APA-/td+AD4-
+ADw-td width+AD0AIg-12+ACUAIgA+-
+ADw-span
id+AD0AIg-rptIntegracionesEnVuelo+AF8-ctl01+AF8-lblTercero+ACI-
title+AD0AIg-11822(Telefonica)+ACIAPg-11822(Telefo...+ADw-/span+AD4APA-/td+AD4-
+ADw-td width+AD0AIg-12+ACUAIgA+-
+ADw-span
id+AD0AIg-rptIntegracionesEnVuelo+AF8-ctl01+AF8-lblPlataforma+ACI-
title+AD0AIg-MP+ACIAPg-MP+ADw-/span+AD4APA-/td+AD4-
+ADw-td width+AD0AIg-10+ACUAIgA+-
+ADw-span
id+AD0AIg-rptIntegracionesEnVuelo+AF8-ctl01+AF8-lblTipoServicio+ACI-
title+AD0AIg-Baja CxD SMS+ACIAPgAm-nbsp+ADw-/span+AD4APA-/td+AD4-
+ADw-td width+AD0AIg-13+ACUAIgA+-
+ADw-span
id+AD0AIg-rptIntegracionesEnVuelo+AF8-ctl01+AF8-lblUnidadNegocio+ACIAPgA8-/span+AD4APA-/td+AD4-


You know it can be?. thanks in advance

0 new messages