0 Replies Latest reply on Sep 10, 2015 8:18 PM by anild37066447

    Is it possible to read xls file through cep api ?

    anild37066447 Level 1



      Is it possible to read .xls file using cep api. I'm trying the following code but for some reasons it returns it return an empty string:

      var filetypes = new Array();

      filetypes[0] = "xls";

      filetypes[1] = "xlsx";


      var result = window.cep.fs.showOpenDialog(false,false,'SELECT Excel','/tmp/',filetypes);

      alert(result.data); //displays the path to the selected file

      var result1 = window.cep.fs.readFile(result.data);

      if (result.err == 0) {

         alert(result1.data); // displays file content

      else {