Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create an Excel file (xls)
Message
De
24/03/2008 09:15:47
 
 
À
24/03/2008 09:09:21
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01304564
Message ID:
01304843
Vues:
15
Saved in my .Net folder. Muchas gracias Caballero

>
>Response.Clear()
>Response.Charset = String.Empty
>Response.ContentType = "application/vnd.ms-excel"
>Dim writer As New System.IO.StringWriter
>Dim htmlWriter As New System.Web.UI.HtmlTextWriter(writer)
>Dim grid As New DataGrid
>grid.DataSource = myDataSet.Tables(0)
>grid.DataBind()
>grid.RenderControl(htmlWriter)
>Response.Write(writer.ToString)
>Response.End()
>
>'Add appropriate cleanup code
>
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform