本帖最后由 a586586586 于 2010-03-16 08:56:16 编辑

解决方案 »

  1.   

    gridToExcel.js
    在这http://writeblog.csdn.net/PostList.aspx
    grid的json为{totalProperty:31,successProperty:'success',root:[{usercode:'t1',username:'t1',count:'0'},{usercode:'t5',username:'t5',count:'0'},{usercode:'lcy',username:'李益',count:'0'},{usercode:'e33',username:'开发人员33',count:'0'},{usercode:'aa',username:'用户a',count:'0'},{usercode:'cs',username:'cs',count:'0'},{usercode:'t3',username:'t3',count:'0'},{usercode:'e1',username:'开发人员1',count:'2'},{usercode:'t4',username:'t4',count:'0'},{usercode:'kf31',username:'没有对应值,可能数据已丢失!',count:'0'},{usercode:'kf32',username:'没有对应值,可能数据已丢失!',count:'0'},{usercode:'zzx',username:'zzx',count:'0'},{usercode:'kf13',username:'kf13',count:'0'},{usercode:'kf23',username:'开发kf23',count:'0'},{usercode:'temp',username:'temp',count:'0'},{usercode:'t6',username:'t6',count:'0'},{usercode:'lhj',username:'lhj',count:'0'},{usercode:'e2',username:'e2',count:'1'},{usercode:'ycs',username:'ycs',count:'0'},{usercode:'kf12',username:'kf12',count:'0'},{usercode:'kf33',username:'没有对应值,可能数据已丢失!',count:'0'},{usercode:'xyyy',username:'xyy',count:'0'},{usercode:'kf11',username:'kf11',count:'0'},{usercode:'kf22',username:'开发kf22',count:'0'},{usercode:'kf21',username:'开发kf21',count:'0'},{usercode:'t1',username:'t1',count:'0'},{usercode:'t2',username:'t2',count:'0'},{usercode:'t4',username:'t4',count:'0'},{usercode:'hzj',username:'hzj',count:'0'},{usercode:'ywt',username:'叶涛',count:'0'},{usercode:'e3',username:'开发人员3',count:'6'}]}以上是我的代码,报
     document.location = 'data:application/vnd.ms-excel;base64,'+Base64.encode(vExportContent);
    这行:  传递给系统调用的数据区域太小。
    请各位帮忙看下,感激不尽
      

  2.   

    IE6和IE7是不支持Data协议的,你先在火狐下试试,看是否能导出
      

  3.   

    火狐下导出的名字,name.xls.part,多了个part,去删掉.part,可以正常打开
      

  4.   

    如何解决的?是不是改变了encode的编码?楼主能否说一下
      

  5.   

    if (Ext.isIE6 || Ext.isIE7 || Ext.isIE8 || Ext.isSafari || Ext.isSafari2 || Ext.isSafari3)
    在if 判断里加上对IE8 的判断。  
      

  6.   

    火狐下导出的名字,name.xls.part,多了个part,去删掉.part,可以正常打开但保存的时候命名就可以不加part???
      

  7.   

    问怎么解决的哥哥妹妹们,我已经说的很清楚了啊,我用的是ie8,所以就是像11楼说的那样啊,因为少写了个ie8啊,呵呵!
      

  8.   

    那个判断本来就是要判断出IE8,IE8不能直接下载