You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/09/17 07:00:40 UTC
[GitHub] [cordova] Nishant05Chauhan opened a new issue #246: XLSX.writeFile is not working in angular to cordova app
Nishant05Chauhan opened a new issue #246:
URL: https://github.com/apache/cordova/issues/246
Here is my code which i have implemented in Angular project
> fileName = 'RequestReportExcelSheet.xlsx';
exportexcel(): void {
/* table id is passed over here */
let element = document.getElementById('reportTable');
const ws: XLSX.WorkSheet = XLSX.utils.table_to_sheet(element);
ws['!cols'] = [];
ws['!cols'][5] = { hidden: true };
/* generate workbook and add the worksheet */
const wb: XLSX.WorkBook = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, 'Sheet1');
//console.log(wb);
/* save to file */
XLSX.writeFile(wb, this.fileName);
}
Also I have added the 'cordova plugin add cordova-plugin-file' this plugin but not able to download the xlsx file
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova] timbru31 commented on issue #246: XLSX.writeFile is not working in angular to cordova app
Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #246:
URL: https://github.com/apache/cordova/issues/246#issuecomment-694046571
Please open a correct a new issue in the correct repo and fill in the issue template! Thanks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova] timbru31 edited a comment on issue #246: XLSX.writeFile is not working in angular to cordova app
Posted by GitBox <gi...@apache.org>.
timbru31 edited a comment on issue #246:
URL: https://github.com/apache/cordova/issues/246#issuecomment-694046571
Please open a new issue in the correct repo and fill in the issue template! Thanks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova] timbru31 closed issue #246: XLSX.writeFile is not working in angular to cordova app
Posted by GitBox <gi...@apache.org>.
timbru31 closed issue #246:
URL: https://github.com/apache/cordova/issues/246
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org