Versions: smartGWT: 2.5 / FireFox 6
I have a tilegrid for which I want to generate a PrintPreview. I only get a part of the grid however, even when I use
the only way I can get things to print my complete TileGrid is by resizing my tiles to remove the scrollbars (unzooming), refetching data with the current criteria, printing and finally restoring the original tile size.
Any thoughts on a better way to solve this problem?
I have a tilegrid for which I want to generate a PrintPreview. I only get a part of the grid however, even when I use
Code:
... printing = true; final ResultSet resultSet = tileGrid.getResultSet(); int totalRows = resultSet.getLength(); resultSet.getRange(1, totalRows); resultSet.addDataArrivedHandler(new DataArrivedHandler() { public void onDataArrived(DataArrivedEvent event) { logger.log(Level.INFO, "All data arrived..."); if (printing) { Canvas.showPrintPreview(tileGrid); printing = false; } } }); ...
Any thoughts on a better way to solve this problem?
Comment