Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always export as .csv file #7

Open
Niraj-Sharma opened this issue Sep 5, 2016 · 5 comments
Open

always export as .csv file #7

Niraj-Sharma opened this issue Sep 5, 2016 · 5 comments

Comments

@Niraj-Sharma
Copy link

Hi,
this module always export as csv file. Is there any way to export as with excel extension?

@trantrunghieu0809
Copy link
Owner

sorry, I will support this issue early

@Niraj-Sharma
Copy link
Author

Thanks for considering this ..

@SATHYARAJU
Copy link

i want to download in xls format. can you help?

@arayate
Copy link

arayate commented Apr 19, 2017

In that case it would make sense to change the library name to json-export-csv.

@vdevappa
Copy link

vdevappa commented Dec 8, 2017

For those wanting to export to excel:

To get this to open in xls by default, change: text/plain to text/csv

var blob = new Blob([strData], { type: "text/csv;charset=utf-8" });

Agreed, this is not real excel, but I found this has the same effect as it will ask to open the file in excel and it will open the csv file as an excel sheet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants