Closed TomKrakott closed 1 year ago
Hi,
When trying to import export files in xls format, I regularly get errors from PhP DOMDocument::loadHTML. It seems that this comes from a bad recognition of the which is not in the desired place. This should be included in the
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <meta http-equiv="content-type" content="application/vnd.ms-excel; charset=UTF-8"> <head> <!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Table</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--> ...
I just reversed line 917/918 in tableExport.js and everything work fine :
917 docFile += '<head>'; 918 docFile += '<meta http-equiv="content-type" content="application/vnd.ms-' + MSDocType + '; charset=UTF-8">';
Thanks for your work :)
Thanks for pointing this out. I have changed the code accordingly and the change will be released in the next version.
Hi,
When trying to import export files in xls format, I regularly get errors from PhP DOMDocument::loadHTML. It seems that this comes from a bad recognition of the which is not in the desired place. This should be included in the
section.I just reversed line 917/918 in tableExport.js and everything work fine :
Thanks for your work :)