用的就是 水晶报表自带的那个导出功能 ,导出到word, pdf 等都正常,但是导出到excel就不正常了, 连页面上的按钮图片都导出 进去了, 谁能解决问题,再开帖子给分
下面几个帖子都是关于这个问题的
http://community.csdn.net/Expert/topic/3770/3770591.xml?temp=.3819391
http://community.csdn.net/Expert/topic/3770/3770807.xml?temp=.3749353
下面几个帖子都是关于这个问题的
http://community.csdn.net/Expert/topic/3770/3770591.xml?temp=.3819391
http://community.csdn.net/Expert/topic/3770/3770807.xml?temp=.3749353
2.如果是通过以下的代码实现 //ExportToExcel();
//**********************************将整个页面内容导出到Excel中
// Response.Clear();
// Response.Buffer= true;
// Response.Charset="GB2312";
// Response.AppendHeader("Content-Disposition","attachment;filename=FileName.xls");
// Response.ContentEncoding=System.Text.Encoding.GetEncoding("GB2312");//设置输出流为简体中文
// Response.ContentType = "application/ms-excel";//设置输出文件类型为excel文件。
同样会出现问题。解决方法:就是自己写函数,将数据导出到Excel中