Print Table or HTML or ANYTHING... [message #444195] |
Fri, 08 October 2004 09:57  |
Eclipse User |
|
|
|
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 10:28  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.12132 seconds