title: Jquery Table2Excel module: Works but Excel throws error
body: <p>I'm exporting some tabledata to Excel using the Jquery module Table2Excel. It works fine but Excel throws the following error when opening.</p>
  
  <p><a href="https://i.stack.imgur.com/tYd9d.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tYd9d.jpg" alt="enter image description here"></a></p>
  
  <p>After closing the message box the data shows up. There is an accepted answer to this issue here: <a href="https://stackoverflow.com/questions/33031702/excel-file-generated-by-table2excel-jquery-plugin-throws-error-when-opened">Excel Error</a> However, it does not fix the problem.</p>
  
  <p>Here is the function:</p>
  
  <pre><code>&lt;script src="https://cdn.rawgit.com/unconditional/jquery-table2excel/master/src/jquery.table2excel.js"&gt;&lt;/script&gt;
  &lt;script&gt;
    jQuery(document).ready(function() {    
    $('#exportNow').on('click', function(e){
        e.preventDefault();
        ResultsToTable();
    });      
    function ResultsToTable(){    
        $("#tabledata").table2excel({
            exclude: ".noExl", //this class data should not be excluded in excel
            filename: "SummaryReport"
        });
    }
     });
  &lt;/script&gt;
  </code></pre>