我正在写一个ASP.NET应用程序在C#中,我试图写一个表格到一个Word文档。ASP.NET:写一个表格(和复选框)到Word文档
我目前使用下面的代码写入到一个Word文档:
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();
现在,我的问题是,如果有人知道我怎么能写一个表到Word文档?
而第二个问题是,如果有人知道如何写复选框到Word文档(如您从网站复制并粘贴到字)
提前感谢!
Killerwes
看我的帖子 – AEMLoviji 2011-03-19 09:08:39