dianaemanuel Posted January 28, 2015 at 10:04 AM Report Share #575846 Posted January 28, 2015 at 10:04 AM Bons dias, Eu gostaria de saber qual o código que tenho que fazer para exportar para excel uns dados que tenho numa tabela. Já fiz o seguinte código: window.open('data:application/vnd.ms-excel,' + encodeURIComponent(tablecopy)); Mas este código não funciona no IE. Ainda tenho outro problema é que esta tabela tem paginação e não me está a apanhar os dados que não estou a visualizar. Link to comment Share on other sites More sharing options...
Cerzedelo Posted January 29, 2015 at 10:54 AM Report Share #575982 Posted January 29, 2015 at 10:54 AM (edited) Talvez o melhor seja usar o datatables, com a extensão tabletools, que permite exportar para Excel, pdf. Ver: https://datatables.net/extensions/tabletools/. Terá de usa o jquery. Edited January 29, 2015 at 10:54 AM by Cerzedelo Link to comment Share on other sites More sharing options...
dianaemanuel Posted February 3, 2015 at 04:38 PM Author Report Share #576502 Posted February 3, 2015 at 04:38 PM Talvez o melhor seja usar o datatables, com a extensão tabletools, que permite exportar para Excel, pdf. Ver: https://datatables.net/extensions/tabletools/. Terá de usa o jquery. Boas tardes, Já consegui resolver o problema, obrigado. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now