Using data from Google Visualization dataTable

58 views
Skip to first unread message

jb98...@gmail.com

unread,
Jan 3, 2013, 3:36:55 PM1/3/13
to gwt-table...@googlegroups.com
Hi,
 
I am using the GWT Visualization library (gwt-visualization-1.1.2) to create charts and reports on my application.
I now need to export the data contained in my reports to Excel without going to the server.
I think that the gwt-table-to-excel should work, but the TableToExcelClient only use argument of type HTMLTable or CellTable.
Can you help me figure out the best way to use the gwt-table-to excel with a dataTable?
 
Thanks    

François WAUQUIER

unread,
Jan 3, 2013, 7:18:36 PM1/3/13
to gwt-table...@googlegroups.com
Hi

You challenged me
Here is a fresh version of gwt-table-to-excel just for you.

New Version 0.0.3 :
http://code.google.com/p/gwt-table-to-excel/downloads/list

Sample code :
http://code.google.com/p/gwt-table-to-excel/source/browse/trunk/gwt-table-to-excel-demo/src/com/googlecode/gwtTableToExcel/demo/client/Gwt_table_to_excel_demo.java#61

Updated Demo:
http://gwt-table-to-excel-demo.appspot.com/

The trick is to use a table representation
https://developers.google.com/chart/interactive/docs/gallery/table .
But you cant create it in memory. It must be attached to the dom.


Happy 2013 Coding Year
--
Francois Wauquier
http://about.me/francoisWauquier
Reply all
Reply to author
Forward
0 new messages