PDA

View Full Version : export grid to excel (extjs4.2.1)



kimhyeri
28 May 2015, 3:11 AM
i want to export grid data to excel .

small data is okay(less than 1000)
but large data(more than 3000) is not okay
i'm using the Exporter.js
here is my code....

var exceldata = html5.ux.exporter.Exporter.exportAny(grid, 'excel', {});
location.href = 'data:application/vnd.ms-excel;base64,' + exceldata;

in chrome, I can see chrome's oops error
how can i do??? is not availible?

52527

Gary Schlosberg
28 May 2015, 9:30 AM
Are you talking about this user extension?
https://www.sencha.com/forum/showthread.php?287411

I'm not able to understand those Chrome messages. Any chance you can recreate this issue in a Fiddle so we can follow along and help figure out what might be happening?
https://fiddle.sencha.com/#home

kimhyeri
31 May 2015, 5:10 PM
52548

this is the chrome console error... help me please....

and,,, if i want to add a style each cell, not colums . how can i adapt cell style when export to excel ???

Gary Schlosberg
8 Jun 2015, 3:45 PM
I'm not able to read that console image (too small).

I doubt you'll be able to set styles on cells in your Excel document without a server-based solution.