Newbie Help needed

57 views
Skip to first unread message

T Klöber

unread,
Aug 20, 2012, 4:47:27 AM8/20/12
to swt-pap...@googlegroups.com
Folks'es,

I've just started using PaperClips and I'm running straight into an exception.
I've copied the code from Snippet1.java to my project and I'm trying to print my Table with it.
When it comes to printing I get the following exception:

org.eclipse.swt.SWTError: Unspecified error Unable to layout page 2

 Can anybody point me into the right direction, what I'm doing wrong/need to do, to get my table printed.

Thanks,

Thomas

Matthew Hall

unread,
Aug 20, 2012, 2:51:32 PM8/20/12
to swt-pap...@googlegroups.com

Hello Thomas,

Your content is likely too large to fit on a sheet of paper, according to the layout constraints of your document.

Likely causes I've found:
* Using "p" columns in grids where "d" is more appropriate. "d" is like "p" but will scale down columns if space is scarce.
* Too many columns to fit on a single page. In this case, a ScalePrint or BigPrint will scale/split the content, and this should give you a good idea of what's not laying out as expected.

Hope this helps,

-Matthew

--
You received this message because you are subscribed to the Google Groups "SWT PaperClips" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swt-paperclips/-/ffiJRMEu65wJ.
To post to this group, send email to swt-pap...@googlegroups.com.
To unsubscribe from this group, send email to swt-paperclip...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swt-paperclips?hl=en.

T Klöber

unread,
Aug 21, 2012, 6:55:15 AM8/21/12
to swt-pap...@googlegroups.com

yup, using BigPrint did the trick.

However, isn't there a way to determine if the resulting document would need BigPrint?

Matthew Hall

unread,
Sep 18, 2012, 2:55:26 PM9/18/12
to swt-pap...@googlegroups.com

However, isn't there a way to determine if the resulting document would need BigPrint?
 
Sadly, no. Layouts can vary from operating system to operating system, and even from printer to printer.

You just have to use trial and error, and have a fallback plan (e.g. ScalePrint or BigPrint) in case something unexpected happens with your layout. Unexpected image sizes and huge blocks of text are the most common culprits.
Reply all
Reply to author
Forward
0 new messages