Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create an Excel file (xls)
Message
From
24/03/2008 09:15:47
 
 
To
24/03/2008 09:09:21
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01304564
Message ID:
01304843
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform