-
15 Nov 2008 6:16 AM #111
export grid to excel with GroupingStore and group summary
export grid to excel with GroupingStore and group summary
Hi Mr. Animal,
I plan to use your extension to export grid to excel.
But my grid use GroupingStore and I have group headers.
I also have group summary rows.
Is there a way to show these rows in excel?
I paste your code to GridView3 Grouping example.
But It is not export grouping headers to excel.
Thanks for your advance.
-
15 Nov 2008 10:02 AM #112
You'll have to add them yourself. Here's a link to the MS documentation:
http://msdn.microsoft.com/en-us/libr...ffice.10).aspx
What I would do is practice handcoding the XML to represent the grouping rows, and then write the code to generate that XML.
It's pretty simple if you look at the generated XML. It's just a glorified <table>Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
16 Nov 2008 8:33 AM #113
Mr. Animal you are right. It is not too difficult to modify.
And I am use renderer functions to show field values.
And also I have to modify ss:ExpandedRowCount property to add extra rows (group headers rows).Code:t += cm.getRenderer(j)(v);
Thanks for your advance.
-
18 Nov 2008 7:02 AM #114
hi animal
i have a problem with your plugin, error is
in ff running too fast but in IE fail itCode:document.location='data:application/vnd.ms-excel;base64,' +Base64.encode(grid.getExcelXml());
if you know anything please tell me
saludos!
ron.
-
19 Nov 2008 1:30 AM #115
.
Originally Posted by POST #1
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
22 Nov 2008 1:50 AM #116
setting excel file name
setting excel file name
Hii, Mr Animal,
I search all messages in this thread and people asked that "how can we set file name?".
Given solution is:
Content-Disposition:attachment;filename=export_filename.xls
Should I post new html page with header contains this parameters?
thanks.
-
22 Nov 2008 2:44 AM #117
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
22 Nov 2008 3:10 PM #118
Hii Mr. Animal,
I search the link you post. But I couldn't find the solution...
I try many combinations like:
When I search in google I found a thread and in there they says that there is no way to do this.Code:linkButton.getEl().child('a', true).href = 'data:application/vnd.ms-excel;Content-Disposition:attachment;filename=export_filename.xls;name=hebe.xls;base64,' + Base64.encode(grid.getExcelXml()); ... linkButton.getEl().child('a', true).href = 'data:application/vnd.ms-excel;Content-Disposition:attachment;file=export_filename.xls;name=hebe.xls;base64,' + Base64.encode(grid.getExcelXml());
http://groups.google.com/group/mozil...dd1b37053742a4
Do I miss something?
you may regret to writing this component... (Because of questions...)
-
23 Nov 2008 4:19 AM #119
You missed my last post it seems.
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
23 Nov 2008 4:21 AM #120
Really, I only wrote it to illustrate how XML spreadsheets can be easily built using XML.
People should take whats illustrated here, and write some code in their server-side to generate the XML.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642


Reply With Quote