1. #11
    Sencha User
    Join Date
    Jun 2008
    Posts
    157
    Vote Rating
    0
    wiznia is on a distinguished road

      0  

    Default


    The data is downloaded via a data uri. That's the "data:application/vnd.ms-excel;base64,PD94bWwgdm...." it should be prompting for a download. Which browser are you using?

  2. #12
    Sencha User
    Join Date
    Jul 2011
    Posts
    7
    Vote Rating
    0
    Ewoq is on a distinguished road

      0  

    Default


    If you mean me, I'm using firefox 5.0.

    I do get prompted for at download, but for a .part file. It ends up being a xls.part.xls file. Like in the example, it contains something like this in the first cell:
    Code:
    Exportable grid900050000falsefalse 0">Exportable gridCompanyPriceChange% ChangeLast UpdatedBlank132767600FalseFalse

  3. #13
    Sencha User
    Join Date
    Jun 2008
    Posts
    157
    Vote Rating
    0
    wiznia is on a distinguished road

      0  

    Default


    mmm, no idea. It seems like something is going wrong in the generation of the file... no idea what, maybe a "strange" character that isn't being escaped?

  4. #14
    Sencha User
    Join Date
    Jul 2011
    Posts
    7
    Vote Rating
    0
    Ewoq is on a distinguished road

      0  

    Default


    What version of excel are you using? 2007?

    It seems that all the information is present before the Base64 encoding, but using the xml without the encoding this produces an incorrect "sheet". So now I'm thinking that the xml format is wrong for my very old excel version (2003)...

    Update: Seems I was using a very very old version of excel (2000!) and it worked as soon as I changed to excel 2003. So thanks for your replies wiznia
    Last edited by Ewoq; 20 Jul 2011 at 6:51 AM. Reason: Silly me

  5. #15
    Sencha User
    Join Date
    Jun 2008
    Posts
    157
    Vote Rating
    0
    wiznia is on a distinguished road

      0  

    Default


    Great! I'm glad to help.

  6. #16
    Sencha User
    Join Date
    Aug 2010
    Posts
    19
    Vote Rating
    0
    Teemac is on a distinguished road

      0  

    Default


    I'm using IE9 and get no prompt, is there possibly a browser setting that is preventing it?
    To be clear it opens a new tab with the url set to the "data:application/vnd.ms-excel;base64,PD94bWwgdm..."

  7. #17
    Sencha User
    Join Date
    Jun 2008
    Posts
    157
    Vote Rating
    0
    wiznia is on a distinguished road

      0  

    Default


    I haven't tested it on IE, until IE7 I think there was no support for data uri, but in IE8 and 9 there is... in theory it should work.

  8. #18
    Sencha User
    Join Date
    Feb 2011
    Posts
    15
    Vote Rating
    0
    nuskin is on a distinguished road

      0  

    Default


    I include the Exporter.js file in the <header> tag <script type="text/javascript" src="./examples/ux/exporter/Exporter.js"></script> and put all other files under ext-4.0.2a\examples\ux\exporter and csvFormatter and excelFormatter sub-folders.

    I also use:
    Ext.Loader.setConfig({enabled: true});
    Ext.Loader.setPath('Ext.ux', './examples/ux');

    I add this config param in my Ext.grid.Panel object:
    dockedItems: [
    {
    xtype: 'toolbar',
    dock: 'bottom',
    items: [ { xtype: 'exporterbutton'} ]
    }
    ]

    However, I still got the same error:
    namespace is undefined
    if (namespace === from...substring(0, from.length) === from) { ext-all-debug.js (line 3487)

    This error is from ext-all-debug.js (line 3487) file.

    Any idea?

  9. #19
    Sencha User
    Join Date
    Jun 2008
    Posts
    157
    Vote Rating
    0
    wiznia is on a distinguished road

      0  

    Default


    mmm, which namespace is undefined? Are the files loading correctly?
    You don't need to include the file in the head, just add it to the 'uses' config option.

  10. #20
    Sencha User
    Join Date
    Jul 2011
    Posts
    7
    Vote Rating
    0
    Ewoq is on a distinguished road

      0  

    Default


    Again I have a similar problem...

    I can only get the exporter to work if I put it in a /src/ux/ folder in my ext directory. I do not want it there.
    I have tried moving it to another folder and changing the Ext.Loader.setPath to this new folder, but can't get it to work at all. Is that even the right way to do it?

    Any thoughts?

Thread Participants: 117

  1. dawesi (1 Post)
  2. feiji1983 (1 Post)
  3. isaac (1 Post)
  4. radtad (4 Posts)
  5. austin1030 (1 Post)
  6. pavanextjs (5 Posts)
  7. aragm (1 Post)
  8. terjeio (1 Post)
  9. il Sergio (2 Posts)
  10. edspencer (1 Post)
  11. nitingautam (2 Posts)
  12. edykstra (3 Posts)
  13. kalchas (4 Posts)
  14. pardha (1 Post)
  15. shelly (1 Post)
  16. talha06 (3 Posts)
  17. vaucer (1 Post)
  18. SMMJ_Dev (7 Posts)
  19. Ekambos (1 Post)
  20. vispiron (1 Post)
  21. sdruckerfig (4 Posts)
  22. jwcraig (1 Post)
  23. dbrin (1 Post)
  24. scaddenp (2 Posts)
  25. grisevich (1 Post)
  26. semialcruz (3 Posts)
  27. krishnarn1 (1 Post)
  28. mikih (1 Post)
  29. Teemac (3 Posts)
  30. jpcoppol (1 Post)
  31. ssuarez (4 Posts)
  32. trinitrotoluen (1 Post)
  33. aladdina (1 Post)
  34. Mental (3 Posts)
  35. nuskin (5 Posts)
  36. droessner (5 Posts)
  37. HIG (1 Post)
  38. jjerome (4 Posts)
  39. bee (2 Posts)
  40. RAD001 (8 Posts)
  41. RNL (1 Post)
  42. shawon (4 Posts)
  43. parkcity (4 Posts)
  44. carlosgoias (1 Post)
  45. Ewoq (7 Posts)
  46. skotamreddy (1 Post)
  47. another_i (5 Posts)
  48. neerajbherwal (1 Post)
  49. nimda13 (2 Posts)
  50. acteon (2 Posts)
  51. ma1986 (2 Posts)
  52. pierrocknroll (1 Post)
  53. Aranair (7 Posts)
  54. clarkbanks (1 Post)
  55. linyajun (1 Post)
  56. delusion (2 Posts)
  57. Jay Tanwar (2 Posts)
  58. supermarcos (6 Posts)
  59. mmuzamil (1 Post)
  60. amishra06 (1 Post)
  61. hundare (1 Post)
  62. Ecthelion (1 Post)
  63. balajivaikar (2 Posts)
  64. jarobi (1 Post)
  65. ferchotipin (2 Posts)
  66. sebas2515 (3 Posts)
  67. arpeggian (3 Posts)
  68. a_kanin (1 Post)
  69. MeDigital (1 Post)
  70. Vasanthoo7 (3 Posts)
  71. jeora (1 Post)
  72. BlackLine (1 Post)
  73. mrhomer (7 Posts)
  74. KostasP (2 Posts)
  75. rdominelli (4 Posts)
  76. pksiv (1 Post)
  77. yoisen (2 Posts)
  78. opms (1 Post)
  79. Oxii (1 Post)
  80. sarz (6 Posts)
  81. gabsoftware (3 Posts)
  82. 9josh (1 Post)
  83. ananthk (2 Posts)
  84. psnprasad (1 Post)
  85. alex9311 (2 Posts)
  86. Pedro2263 (1 Post)
  87. felix822 (2 Posts)
  88. mpasacrita@escholar.com (1 Post)
  89. Garry Hawkins (1 Post)
  90. jesus.balles (1 Post)
  91. chandrima31 (1 Post)
  92. this-is-sparta (1 Post)
  93. vitalz (7 Posts)
  94. Sheng_Yunzhou (2 Posts)
  95. xdengli (1 Post)
  96. sgscontact (1 Post)
  97. nitingogia@gmail.com (1 Post)
  98. Swetosuvro (1 Post)
  99. sudrak (1 Post)
  100. cdmein (1 Post)
  101. code4jhon (1 Post)
  102. felixfang (2 Posts)
  103. jayasingh1802 (2 Posts)
  104. abdul haq (3 Posts)
  105. luatbravo (1 Post)
  106. gilmaredo@gmail.com (1 Post)
  107. ricardo.lourival (1 Post)
  108. Sundarganesh Ramar (1 Post)
  109. madhavan281981 (1 Post)
  110. suvo (3 Posts)
  111. shankar8rajah1 (1 Post)
  112. benny_GI (1 Post)
  113. cojocarutudor (1 Post)
  114. arnoldvillasanta (4 Posts)
  115. tajashwin (1 Post)
  116. mangeshppatil (2 Posts)
  117. mukhriddin (1 Post)