Interface Printing


public interface Printing

Printing

The browser's built-in support for printing will at best print what you see, which in the case of a web application will often be useless, illegible, or partial.

Smart GWT has specialized printing support that can take any page built with Smart GWT components and provide a reasonable printed view. The default printed view:

  • renders components without clipping or scrolling regions, so that a scrolling grid shows all rows in the cached range around the first visible row
  • removes certain decorative images, such as image-based backgrounds, which may print poorly in black and white
  • converts editing controls into static representations of the data being edited
  • removes interactive elements such as buttons and menus, which don't work on paper and waste space
The default printed view can be customized with settings and method overrides as necessary, including the ability to created printed representations of custom components you have created.

For simple, built in printing support, see the Canvas.showPrintPreview() and Canvas.getPrintPreview() APIs, or for finer grained control developers may call Canvas.getPrintHTML() directly and work with the PrintCanvas or PrintWindow class.

Note that the CubeGrid component does not currently support WYSIWYG printing (as documented in that class).

See Also: