Hi, I am having trouble printing a table that has really long text for one of the cell. It throws an error saying that page cannot be layed out. Can a cell not span two pages if the text is long?
Thanks,
Terry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
GridPrint is designed to layout its columns to fit on the page. It may be that because your large column is so much bigger than the other columns, that it is the other columns that have been squished so small that nothing will lay out in them.
Have you tried BigPrint?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the quick reply. I actually have a description for each item that I am displaying in the GridPrint and since this description can be very large, I am displaying it below the other columns, so the table look something like this:
Sorry I let this fall through the cracks. If you're still having problems, please open an issue and I'll see if I can help. A standalone snippet would be most helpful.
Hi, I am having trouble printing a table that has really long text for one of the cell. It throws an error saying that page cannot be layed out. Can a cell not span two pages if the text is long?
Thanks,
Terry
GridPrint is designed to layout its columns to fit on the page. It may be that because your large column is so much bigger than the other columns, that it is the other columns that have been squished so small that nothing will lay out in them.
Have you tried BigPrint?
The other option is to set up your grid so the really huge column has a fixed size with the grow attribute set:
GridPrint grid = new GridPrint("d, d, d, 72:g");
grid.add(smallPrint);
grid.add(smallPrint2);
grid.add(smallPrint3);
grid.add(ridiculouslyHugePrint);
This way your small prints get their default sizes and the huge column gets a 1" starting width and will grow to fill the remaining space.
Thanks for the quick reply. I actually have a description for each item that I am displaying in the GridPrint and since this description can be very large, I am displaying it below the other columns, so the table look something like this:
Item 1 | xxx | xxx | xxx
Description-----------
Item 2 | xxx | xxx | xxx
Description-----------
So I don't think the problem is that other columns are squished too small. And I tried Big Print and it gave me the same error.
Sorry I let this fall through the cracks. If you're still having problems, please open an issue and I'll see if I can help. A standalone snippet would be most helpful.
Note that PaperClips is now maintained on Google Code:
http://code.google.com/p/swt-paperclips/