Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Print Table or HTML or ANYTHING...
Print Table or HTML or ANYTHING... [message #444195] Fri, 08 October 2004 13:57 Go to next message
Eclipse UserFriend
Originally posted by: idontlikespam.lukjel.tenbit.pl

Hi!

I'm writting Desktop application using Eclipse RCP.
I have to print some table. This is normal table - user can sort (by
clicking on header), can resize, etc.
Now I want to print that table... HOW? Please - could you give me some link
where is written - step by step how?
Could be to difficult (printing table) so I'm able to easli convert this
table to HTMLDocument - nice, isn't it? But - what now?
How can I print HTML document? Especially when it is 10 or more pages
long...
For "big" reports I'm using JasperReports - it works good, but I can't use
it when I don't know what will be printed (layout)!
I could prepare "realtime" jasper report definition (for concrete Table) but
then I have to COMPILE IT and I don't wont this.

Any solutions? I can't imagine that so commonly used feature - like PRINT -
is not covered by some standard routines...
..Net is a winner???? ;)

Lukjel
Re: Print Table or HTML or ANYTHING... [message #444420 is a reply to message #444195] Tue, 12 October 2004 14:28 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
To print something using SWT see the following snippet:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet133.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

If you want to print the contents of a table, you need to format the output
yourself. The example above describes how to wrap text and determine your
position on the printed page or pagination etc.

"lukjel" <idontlikespam.lukjel@tenbit.pl> wrote in message
news:ck662r$im7$1@eclipse.org...
> Hi!
>
> I'm writting Desktop application using Eclipse RCP.
> I have to print some table. This is normal table - user can sort (by
> clicking on header), can resize, etc.
> Now I want to print that table... HOW? Please - could you give me some
> link
> where is written - step by step how?
> Could be to difficult (printing table) so I'm able to easli convert this
> table to HTMLDocument - nice, isn't it? But - what now?
> How can I print HTML document? Especially when it is 10 or more pages
> long...
> For "big" reports I'm using JasperReports - it works good, but I can't use
> it when I don't know what will be printed (layout)!
> I could prepare "realtime" jasper report definition (for concrete Table)
> but
> then I have to COMPILE IT and I don't wont this.
>
> Any solutions? I can't imagine that so commonly used feature - like
> PRINT -
> is not covered by some standard routines...
> .Net is a winner???? ;)
>
> Lukjel
>
>
Previous Topic:Can you create SWT widget offscreen and scrape it's graphics?
Next Topic:example plug-ins
Goto Forum:
  


Current Time: Tue Apr 23 10:48:20 GMT 2024

Powered by FUDForum. Page generated in 0.02780 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top