Menu

Printing complex SWT-Controls

2008-05-27
2013-04-10
  • Nobody/Anonymous

    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.

     
    • Matthew Hall

      Matthew Hall - 2008-05-27

      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

       
    • Nobody/Anonymous

      do you know how to capture images from swt controls?

       
    • Nobody/Anonymous

      works great, as long as the widget is visible...any idea what to do if it is not visible for example in a ScrolledComposite?

       
      • Matthew Hall

        Matthew Hall - 2008-05-28

        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.

         

Log in to post a comment.

MongoDB Logo MongoDB