Lo he implementado así. La cuadrícula tiene varias páginas y, después de exportar el archivo en formato xlsx, el archivo contenía solo los datos de la primera página. Entonces, ¿cómo puedo descargar todas las filas? ¿Puedes ayudarme aquí?
const InvestigationTable1 = document.getElementById("invtbl"); function ExportTOExcel(InvestigationTable ? : any) { var wb = XLSX.utils.table_to_book(InvestigationTable, < XLSX.Table2SheetOpts > { sheet: "Sheet JS" }); var wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: true, type: 'binary' }); const blob = new Blob([s2ab(wbout)], { type: "application/octet-stream" }); download(new Blob([s2ab(wbout)], { type: "application/octet-stream" }), 'test.xlsx'); }