ASP.NET: Write a table (and checkboxes) to a word document
<p>I am writing an ASP.NET Application in c# and I'm trying to write a table to a word document.</p>

<p>I use currently the following code to write to a word doc:</p>

<pre><code>        string strContent = "This content goes to the word document";
        string attach = "attachment; filename=wordtest.doc";
        HttpContext.Current.Response.Clear();
        HttpContext.Current.Response.Charset = "";

        HttpContext.Current.Response.ContentType = "application/msword";
        HttpContext.Current.Response.AddHeader("content-disposition", attach);
        HttpContext.Current.Response.Write(strContent);
        HttpContext.Current.Response.End();
        HttpContext.Current.Response.Flush();
</code></pre>

<p>Now, my question is if anyone knows how I can write a table to a word document? </p>

<p>And second question is if anyone knows how to write  checkboxes to a word doc (like you copy it from a website and paste it in word)</p>

<p>Thanks in advance! </p>

<p>Killerwes</p>
