Hi,
first of all let me say that you did a fantastic job with this print library, excellent work!
I have a question:
I need to print mainly SWT-controls, so this is not a real problem as long as we stick to simple stuff like Text, Label, Table or Trees.
But what would be the best way to print such like complex control that can be found in the nebula-project? Is there a possibility to convert SWT to an image and print this image then?
Thanx.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't used Nebula controls much, but I would assume that the same method for capturing images from standard SWT controls would work with Nebula controls. Try it out and see what happens. PaperClips only requires you to supply an ImageData to print an image. How you obtain that instance is up to you.
Matthew
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
first of all let me say that you did a fantastic job with this print library, excellent work!
I have a question:
I need to print mainly SWT-controls, so this is not a real problem as long as we stick to simple stuff like Text, Label, Table or Trees.
But what would be the best way to print such like complex control that can be found in the nebula-project? Is there a possibility to convert SWT to an image and print this image then?
Thanx.
I haven't used Nebula controls much, but I would assume that the same method for capturing images from standard SWT controls would work with Nebula controls. Try it out and see what happens. PaperClips only requires you to supply an ImageData to print an image. How you obtain that instance is up to you.
Matthew
do you know how to capture images from swt controls?
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet95.java
works great, as long as the widget is visible...any idea what to do if it is not visible for example in a ScrolledComposite?
Unfortunately I don't. Have you tried asking on the eclipse.platform.swt newsgroup? Your problem is more closely related to SWT than to PaperClips.