Google Translate:Hello, I have a query with a button that says download in excel...everything is fine. but I want that information to be shown to me in a separate sheet of the same file... and I am using agular as a front this is my code..
let existworkBook = XLSX.readFile('C:\\Archivo_Descargas\\WEGMANSPRODUCTION021624.xlsx'); //Crear nueva hoja con los datos let newWorkSheet = XLSX.utils.json_to_sheet(salesOrderReport, { header: heading , skipHeader : true}); //Agregar la nueva hoja al libro existente XLSX.utils.book_append_sheet(existworkBook, newWorkSheet , this.translationService.getValue('PRODUCT_SALES_REPORT')); XLSX.writeFile(existworkBook,'C:\\Archivo_Descargas\\WEGMANSPRODUCTION021624.xlsx');
Google Translate:The error it is showing me.
common-error-handler.service.ts:20 Error: Cannot access file C:\Archivo_Descargas\WEGMANSPRODUCTION021624.xlsx at read_binary (xlsx.mjs:3234:8) at readSync (xlsx.mjs:23811:69) at Module.readFileSync (xlsx.mjs:23851:9) at SafeSubscriber._next (product-sales-report.component.ts:316:30) at SafeSubscriber.__tryOrUnsub (Subscriber.js:183:16) at SafeSubscriber.next (Subscriber.js:122:22) at Subscriber._next (Subscriber.js:72:26) at Subscriber.next (Subscriber.js:49:18) at FilterSubscriber._next (filter.js:33:30) at FilterSubscriber.next (Subscriber.js:49:18)
Google Translate:I run the application and it shows me the mentioned error
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)