PDA

View Full Version : Printing pages built with gxt wont display only the first page



glidealong
14 Dec 2009, 4:16 AM
Steps to reproduce

1. Go to http://www.extjs.com/examples/explorer.html#gridplugins
2. Take print preview from browsers' file menu
3. You can see that only the contents that fit in the first page is displayed. Even if you print on paper, the same happens.


Desired output.

The print should display the entire contents in multiple pages.

Thanks and Regards,
Hafiz

Arno.Nyhm
15 Dec 2009, 7:02 AM
thats a restriction by every browser to print only what you can see. also the content of the grid is not printed completly.



only workaround:

open a new window and render the gridstore in a html table. there is no quick and dirty printing solution.


in extjs i found this solutions like i described - maybe someone adopt it to GXT:

XtPrinter
http://www.extjs.com/forum/showthread.php?t=52953&highlight=print

Print Element --> render html content in a hidden iframe and print it
http://www.extjs.com/forum/showthread.php?t=44885&highlight=print

Ext.ux.PrinterFiendly
http://www.extjs.com/forum/showthread.php?p=148443

Print Preview
http://www.extjs.com/forum/showthread.php?t=35520
(note the small printer icon on this demo http://www.jadacosta.es/extjs/examples/print-preview/array-grid.html )