本帖最后由 sunqiusong 于 2010-06-23 16:15:34 编辑

解决方案 »

  1.   

    LZ可以参考下:http://blog.csdn.net/xsailer/archive/2009/09/11/4542142.aspx
      

  2.   

    不考虑用ActiveX,如果能解决在谷歌下调用ActiveX可以考虑,关键一直都找不好的方法来解决这个问题。始终不能调用ActiveX插件
      

  3.   

    ActiveX控件,或者你可以使用CSV格式的也可以用Excel打开。
      

  4.   

    http://en.wikipedia.org/wiki/Data_URI_scheme网上说IE只是受限,没说不支持,IE8是支持的,只是受限制
    Internet Explorer 8: Microsoft has limited its support to certain "non-navigable" content for security reasons, including concerns that JavaScript embedded in a data URI may not be interpretable by script filters such as those used by web-based email clients. Data URIs must be smaller than 32 KiB.
    "Data URIs are supported only for the following elements and/or attributes:
    object (images only)
    img
    input type=image
    link
    CSS declarations that accept a URL, such as background, backgroundImage, and so on." -MSDN[4]
    我上面的是不是不是link才不支持
      

  5.   

    恩,有可能是URL超长了,LZ用个短点的测试看看呢
      

  6.   

    如果是超长的话,这样呢
    var d=window.open('','globalexcelTmpIframe');
    d.document.writeln('data:application/vnd.ms-excel;base64,'+Base64.encode(grid.getExcelXml()));
      

  7.   

    grid.getExcelXml()这个方法找不到,怎么解决呀?
      

  8.   

       我也遇到这个问题 api中都没有这个方法 请高手先说说 这方法是哪来的
      

  9.   

    我现在也遇到了这个问题,请问如何创建excel的xml数据呢