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

The file format and extension of ABC.xls don't match. #46

Open
hahndarryl opened this issue May 10, 2018 · 0 comments
Open

The file format and extension of ABC.xls don't match. #46

hahndarryl opened this issue May 10, 2018 · 0 comments

Comments

@hahndarryl
Copy link

hahndarryl commented May 10, 2018

Is there a way to configure Angular File Saver to export an html web page to an excel file, without having to see this error message from excel? (And do it without having to set the user's Excel Trusted Location settings)

The file format and extension of ABC.xls don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?

I'm currently using Angular File Saver like this:
var blob = new Blob([document.getElementById(tableId).innerHTML], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
});
FileSaver.saveAs(blob, fileName + ".xls");

thanks,
Darryl

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

1 participant