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

Not working in IE (v11) #6

Open
Bhaall opened this issue Apr 24, 2014 · 4 comments
Open

Not working in IE (v11) #6

Bhaall opened this issue Apr 24, 2014 · 4 comments

Comments

@Bhaall
Copy link

Bhaall commented Apr 24, 2014

Has anyone been able to get the export to work in Internet Exploder (v11)?

@anatolysukhanov
Copy link

I don't think it's possible

https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs says:

"Internet Explorer 8 and above only supports data URIs for images in CSS, link, and img".

@NicBright
Copy link

It is possible using window.navigator.msSaveOrOpenBlob, at least from IE9 upwards (I don't know about IE8). See http://stackoverflow.com/questions/13464878/creating-csv-file-offline-client-side-in-internet-explorer.

I've written myself a custom monkey patch for this, which I would be happy to properly share with the community, i.e. of course if @esvit can give me the guarantee to have a look at it. I have to ask for this, because the support for ng-table in general seems to be declining since a couple of months, with the only usable statement from @esvit being that he's working on ng-table v0.4 ...

@esvit: If you can give me feedback I'd be happy to provide a pull request for this to fix CSV export functionality for IE9+ support.

I have also monkey patches available to have the user chose the encoding of the generated CSV-file (currently you will get UTF8). This is important, because Excel 2007 (which is still used out there in a lot of companies) interprets CSV-files as latin1.

@esvit: If you can give me feedback I'd be happy to also provide a pull request for letting the user decide whether the generated file should be latin1 or UTF8 encoded.

@NicBright
Copy link

Here is the fix:
#13

Have fun! :-)

@floydpink
Copy link

Since this repo was not being updated, we forked it and would welcome suggestions like these that could improve the library.

Check out https://github.com/kollavarsham/ng-table-to-csv

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

4 participants