IDeploy

adventures of a geek without a parachute

  Home  |   Contact  |   Syndication    |   Login
  35 Posts | 1 Stories | 38 Comments | 206 Trackbacks

News

Archives

Post Categories

Image Galleries

________

Articles

Blogroll

Humor

June 2005 Entries

Send a datagrid to the browser in excel format..... Response.ContentType = "application/vnd.ms-excel" Response.Charset = "" Response.Clear() Me.EnableViewState = False Dim sw As New StringWriter() Dim hw As New HtmlTextWriter(sw) Me.DataGrid1.RenderControl(hw) Response.Write(sw) Response.End()