A Full Stack Developer specializes in Python (Django, Flask), Go, & JavaScript (Angular, Node.js). Experience designing, planning, and building complete web applications with backend API systems.
This one for export excel right? not for export CSV? Please check and let me sample example where I need to add this code in the following code if it is correct...
A Full Stack Developer specializes in Python (Django, Flask), Go, & JavaScript (Angular, Node.js). Experience designing, planning, and building complete web applications with backend API systems.
How to change the sheetname in download CSV file?
Hey, you can find the same in the
export.service.ts
This one for export excel right? not for export CSV? Please check and let me sample example where I need to add this code in the following code if it is correct...
private saveAsFile(buffer: any, fileName: string, fileType: string): void {
const data: Blob = new Blob([buffer], { type: fileType });
FileSaver.saveAs(data, fileName);
}
/**
"${cell}"
; } return cell; }).join(separator); }).join('\n'); this.saveAsFile(csvContent,${fileName}${CSV_EXTENSION}
, CSV_TYPE); } }I want to give different name for file and tab in CSV.
You can pass the filename as mentioned in the function's
exportToCsv
dosctring. Also, CSV's won't have sheets in it ;)