-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Export data in excel format #3800
Comments
CSV can be imported to Excel. Excel format is not a documented format, so no we cannot export to it. |
Excel means .xls file. There may be a issue if I export a grid data which contains comma,semicolon or any special character then after impoting this to Excel, It may not open in desired format. |
There may be an issue, but the csv format should quote or escape those things appropriately. As noted, .xls isn't a documented/open format, so it's not really possible to build something that creates xls. The normal method is to create csv. |
Actually .xls is a documented/open format: That being said, someone would have to write an implementation to create an exporter for this. |
That's interesting, wasn't aware of that. I do think that csv suits most purposes though - exporting to .xls just adds complexity I would have thought. |
that would be awesome if someone implements this functionality. most of the companies uses excel export. and most of the grid components of various companies have this export function. i think ui-gird must have this function as well. |
We are open to pull requests to add enhancements. |
+1 |
1 similar comment
+1 |
This is a useful request, but not really in the current roadmap. We have far too many good ideas in the repository already, giving the impression that we have a project riven with defects. Accordingly, I am leaving the enhancement tag on this, but closing it. If someone would like this functionality, we'd welcome a pull request that adds it. |
+1 |
6 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
Maybe saving the html as xls would be enough? Example from: http://jordiburgos.com/post/2013/javascript-export-to-excel.html somedata.xls
|
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
+1 A nice compromise might be to add the tab-delimited format (TSV) as an export option. This would work around the comma-related issue that @debayan31 mentioned with CSV files but still enable users to open the file in Excel. I suspect changing the delimiter from a comma (",") to a tab ("\t") in the source code is trivial. From what I have seen, Microsoft is using the ".txt" file extension (e.g. as opposed to ".tsv") as the standard for tab-delimited files (and, in general, for files delimited with anything other than a comma). |
I solved this by converting the standard CSV export to .xlsx via this lib: http://excelbuilderjs.com/. It is relatively simple for most cases. |
@csvan http://excelbuilderjs.com is down |
About export to xls For example: this Query works fine http://jsfiddle.net/jqwidgets/6HRU8 |
@lreisoliveira the maintainer shut it down. It was fine when I posted that. |
+1 |
1 similar comment
+1 |
I can achive using jx-xlsx https://github.com/SheetJS/js-xlsx |
@gokhancelik that's exactly what I needed. It works like a charm. Thank you! |
+1 |
@gokhancelik I am trying to use your excel exporter service but I can't figure out what is your property "e" in the range object in the addCell function. Thanks in advance! |
SheetJS Angular demo shows ui-grid import and export: https://github.com/SheetJS/js-xlsx/tree/master/demos/angular |
Apparently this functionality now exists in ui-grid proper, since v4.0.11 (2017-11-20), through the exporterMenuExcel and exporterExcel* options (due to merging in PR #6199 (Excel export), per @csvan or @monster910). In fact, it appears to be enabled by default, even if the required support modules are not available. The big problem, as mentioned above by @lreisoliveira, is that excel-builder is no longer supported. Question: should we be looking at a replacement for excel-builder? Possibly SheetJS/js-xlsx - https://github.com/SheetJS/js-xlsx Alternatively: Someone should take over excel-builder support or one of the (several) existing forks could be promoted as official? Also, the "enhancement" and "waiting-response" tags and milestone are probably not appropriate for this issue anymore - it's confusing because this thread comes up in searches and the reason for closing it makes it sound like it's still an issue. |
XLSX is a good choice as it also has import/parse capabilities. It lacks the capabilities of excel-builder without a license. All open source is roll your own. Feel free to create a new branch and work on a new Excel export. |
Is this possible to export grid data in excel format?
Currently we can export data in CSV and PDF format.
The text was updated successfully, but these errors were encountered: