代码如下:public static void CreateExcel(DataSet ds) { string filename = DateTime.Now.ToString(“yyyyMMddHHmmssff”) + “.xls”; HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding(“GB2312”); HttpContext.Current.Response.AppendHeader(“Conten