用"hyperlink"打开的word界面中,图形化菜单全没有了 没有人?你试一试就知道了。结果肯定一样。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 居然没有一个人能解决这个问题? 没试 有IE直接打开word有点慢 我直接保存为word格式 在客户端 private void ToWORD(System.Web.UI.Control ctl) { Response.Charset="GB2312"; Response.AppendHeader("Content-Disposition","attachment;filename=myWord.doc"); Response.ContentEncoding = System.Text.Encoding.UTF8; Response.ContentType = "application/ms-word"; ctl.Page.EnableViewState = false; System.IO.StringWriter tw = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter hw = new HtmlTextWriter(tw); ctl.RenderControl(hw); Response.Write(tw.ToString()); Response.End(); } private void bt_Click(object sender, System.EventArgs e) { ToWORD(FloorDatalist); } 封装字段是报错,(查找基方法时出错) sqldatasource取不到值 在后台代码实现个功能,根据选择提示用户是否继续执行操作 asp.net分页问题 关于dataSet里面的dataTable的问题 请问,怎么样在打开页面的时候,让浏览器不出现地址栏? IIS6.0浏览不了ASP.NET2.0的网页 【郁闷!做了个简单的<a href='...'>下载,现在叫我改用其他方法下载】 datagrid问题! 如何把DataSet绑定到DataList的EditItemTemplate中?? 如何用代码来动态建立一个超链接 如何把数据库里的数据导出并保存到客户机?(最好不用DataGrid)
{
Response.Charset="GB2312";
Response.AppendHeader("Content-Disposition","attachment;filename=myWord.doc");
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.ContentType = "application/ms-word"; ctl.Page.EnableViewState = false;
System.IO.StringWriter tw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter hw = new HtmlTextWriter(tw); ctl.RenderControl(hw); Response.Write(tw.ToString());
Response.End();
}
private void bt_Click(object sender, System.EventArgs e)
{
ToWORD(FloorDatalist);
}