Isomorphic,
Here is the code i am using to download the data from list grid.
This (for all both XLS and XLSX/OOXML) works fine with GWT application server but when i configure my application with tomcat or apache web server, it wont download.
I checked MIME type in mime.types file where i can see some entries for both XLS and XLSX. basically this results in 0Kb file with Result.xls.htm file.
Please let me know is it a known issue or do i need to configure any other stuff.
Thanks,
Yathish
Here is the code i am using to download the data from list grid.
Code:
exportButtonCSV.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { exportDataGrid(ExportFormat.OOXML); //exportDataGrid(ExportFormat.XLS); } }); private void exportDataGrid(ExportFormat exportFormat) { DSRequest dsRequest = new DSRequest(); dsRequest.setExportAs(exportFormat); dsRequest.setTimeout(EXPORT_TIMEOUT); dsRequest.setEndRow(EXPORT_FETCH_SIZE); dsRequest.setOperationId(searchManager.getReportsOperationID()); dataGrid.exportData(dsRequest); }
I checked MIME type in mime.types file where i can see some entries for both XLS and XLSX. basically this results in 0Kb file with Result.xls.htm file.
Please let me know is it a known issue or do i need to configure any other stuff.
Thanks,
Yathish
Comment