急急急!!!求高手帮忙,怎样在ASP.NET中向EXCEL写入宏 在asp.net中写入,要求用c#语言,有会的帮帮我好吗 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 模板是会做拉,但是要怎么与asp导出到Excel的代码结合起来呢?能否给个例子?? public static void GenerateByHtmlString(string Typename, string TempHtml) { HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.Charset = "utf-8"; string Filename = Typename + ".xls"; HttpContext.Current.Response.AppendHeader("Content-Disposition", "online;filename=" + Filename); HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); HttpContext.Current.Response.ContentType = "application/ms-excel"; //this.EnableViewState = false; HttpContext.Current.Response.Write(TempHtml); HttpContext.Current.Response.End(); }Typename为导出的文件名,TempHtml为HTML字符串 单独地导出数据到Excel已经会拉,就是想给导出的那个Excel写一个宏,意思就是将数据导出到一个带有宏的Excel中 背景移动怎么实现? VS 2010, 在编辑C#页面程序时,类名称已更改,但老名字仍起作用,新名字反而找不到 新手从来没遇到这个问题,不知道怎么解决 日期控件 DATAGRID的普通难题??119急呀!!!! 谁能给个datalist的分页例子! 绘制扇形函数的第二、三个参数表示的什么? Session_End 事件下的代码当 timeout失效后还会连续执行? 有关做网站的三个技术问题 框架问题 小问题 控件注释 马上结贴 验证控件与母版的冲突。。。。。。。。。。
能否给个例子??
{
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.Charset = "utf-8";
string Filename = Typename + ".xls";
HttpContext.Current.Response.AppendHeader("Content-Disposition", "online;filename=" + Filename);
HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8");
HttpContext.Current.Response.ContentType = "application/ms-excel";
//this.EnableViewState = false;
HttpContext.Current.Response.Write(TempHtml);
HttpContext.Current.Response.End();
}Typename为导出的文件名,TempHtml为HTML字符串