ng-table-export
ng-table-export copied to clipboard
Not working in IE (v11)
Has anyone been able to get the export to work in Internet Exploder (v11)?
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".
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.
Here is the fix: https://github.com/esvit/ng-table-export/pull/13
Have fun! :-)
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