| 发表于:2007-09-18 04:36:48 楼主 |
类似 ... string style = @ " <style> .text { mso-number-format:\@;} </script> "; response.addheader( "content-disposition ", "attachment;filename=filename.xls "); response.charset = "gb2312 "; response.contenttype = "application/vnd.xls "; system.io.stringwriter stringwrite = new system.io.stringwriter(); system.web.ui.htmltextwriter htmlwrite = new htmltextwriter(stringwrite); gridview5.allowpaging = false; gridview5.rendercontrol(htmlwrite); response.write(style); response.write(stringwrite.tostring()); response.end(); ====== 这样的导出语句会引起错误,请问怎么解决啊? |
|
|
|
|