asp.net里导出excel表方法汇总作者roc日期2006-2-2410:26:001、由dataset生成publicvoidCreateExcel(DataSetds,stringtypeid,stringFileName){HttpResponseresp;resp=Page.Response;resp.ContentEncoding=System.Text.Encoding.GetEncoding("GB2312");resp.AppendHeader("Content-Disposition","attachment;filename="+FileName);stringcolHeaders="",ls_item="";inti=0;//定义表对象与行对像,同时用D...