2
votes

As part of a recent project, I have created a Cell Table that holds a few million rows of data. This data can be exported to CSV, filtered, and a few other basic functions. The last bit of functionality that I want to add, is the ability to print out the contents of the Cell Table to a local printer. I've done some research online (Google Groups and all the intro GWT material), but as far as I can tell there is no method to print a widget's contents -- specifically a Cell Table. Does anyone have an idea of how to go about setting something like this up (obviously I expect no code -- a description would be great!)?

2
How is this data being loaded to your client app? - ramon_salla
A simple async call sends the data to the widget. - Duck

2 Answers

2
votes

There's an idea on how to print GWT widgets in this thread. The author of that post also placed his Print class in a Google Code project.

0
votes

You can't directly use a printer interface from js code.

http://javascript.about.com/od/events/a/print.htm

Several webs have a button like "print version" which generates an HTML page with plain custom style.

example - http://www.alistapart.com/articles/goingtoprint/

You can also easily generate pdf versions in either client or server. PDF is quite a good way to let user print a document.

more info - https://stackguides.com/questions/1523851/gwt-printing-to-pdf