Andre Kullmann
unread,Oct 26, 2009, 3:32:03 PM10/26/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SWT PaperClips
Hi,
i try to print a simple image, my code looks like
ImageLoader loader = new ImageLoader();
ImageData[] data = loader.load("c:/test.png");
PaperClips.print( new PrintJob("test", new ImagePrint(data[0]) ), new
Printer( printerData ) );
And this Exception is thrown
org.eclipse.swt.SWTError: Unspecified errorUnable to layout page 1
at org.eclipse.swt.SWT.error(SWT.java:3803)
at net.sf.paperclips.PaperClips.error(PaperClips.java:82)
at net.sf.paperclips.PaperClips.error(PaperClips.java:70)
at net.sf.paperclips.PaperClips.getPages(PaperClips.java:422)
at net.sf.paperclips.PaperClips.print(PaperClips.java:255)
at net.sf.paperclips.PaperClips.print(PaperClips.java:210)
I don't know whats going wrong. Is there an example 'how to print an
image in paperclipse' ?
Thanks,
André