Comments (4)
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".
from ng-table-export.
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.
from ng-table-export.
Here is the fix:
#13
Have fun! :-)
from ng-table-export.
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
from ng-table-export.
Related Issues (14)
- export only checked HOT 1
- Exported file used ";" instead of "," as separator HOT 5
- get "undefined is not a function"
- ng-table export encoding to utf-8 hebrew letters HOT 8
- Export ignores table filters
- csv file download
- Demo site HOT 1
- Need full/filtered table dataset without pagination HOT 1
- The example doesn't work.
- Improvement suggestion: prepend BOM to CSV HOT 1
- pagination also got exported into CSV HOT 4
- Export without pagination HOT 22
- Download file does not include .csv extension HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-table-export.