看看你代码用的什么方式,一般两方式,
1、将要导入的内容序列化为字符串,一般是<table>,Response.Write 到客户端
2、使用 Microsoft.Office.Interop.Excel.Application 操作excel 后导出
第2种方式会有权限的问题。

解决方案 »

  1.   

    一般系统的导出 我都不适用excel的com组件...我一般都用myxls做导出..很不错
      

  2.   

    现在用npoi是个不错的选择,原生态的excel操作真的不好搞。
      

  3.   

    我觉得不像是权限的问题,加上<identity impersonate="true" userName="Administrator" password="1" />
    之后权限的问题已经解决了。
      

  4.   

    你看看这个,不知道对你有没有帮助http://q.cnblogs.com/q/34042/
      

  5.   

    npoi不错就是怎么给单元格家样式呢。我是这样加的
    ICellStyle cellStyle = workbook.CreateCellStyle(); 
            cellStyle.DataFormat = HSSFDataFormat.GetBuiltinFormat("0.00%"); 
            SumRow.CreateCell(17).CellStyle = cellStyle;
                SumRow.CreateCell(17).SetCellValue(Convert.ToDouble(sumExamineGrossRate));
    怎么加不上呢?