Export gridview to MS word preserving formatting
<p>Is there a way to export a gridview to MS word and keep the formatting from the gridview.  The code below works to export the gridview but I cannot figure out how to keep the formatting.  (I cannot use any 3rd party software)</p>

<pre><code>    Response.Clear()
    Response.Buffer = True
    Response.AddHeader("content-disposition", "attachment;filename=GridViewExport.doc")
    Response.Charset = ""
    Response.ContentType = "application/vnd.ms-word"

    Dim sw As New StringWriter()
    Dim hw As New HtmlTextWriter(sw)
    GridView1.RenderControl(hw)
    Response.Output.Write(sw.ToString())
    Response.Flush()
    Response.End()
</code></pre>
